comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: changing path
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: changing path [message #55160] Thu, 02 August 2007 13:59
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Aug 2, 12:02 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> Hello
>
> i have IDL project. It's consists of 14 files with *.pro extension
> one source file have line
>
> RESTORE, 'D:\IDL\GEOPROJECT\Templates.sav'
>
> so i pack project to save file (geoproject.sav). Total, my project
> have 2 sav files
>
> for ENVI path will change. How define path for Templates.sav from
> other sav file in this case (if path would be change) ?
>
> I try put their in same directory, but IDL says 'file not found'

I'm not 100% sure of your question, but I think it's "My application
has data files associated with it. How do I find the location of these
data files when it is installed on someone else's computer?"

The two methods I use are:

1. Install the data files in some location relative to the program
code (like in the same directory or in a subdirectory). Use
MG_SRC_ROOT to find the location of the program code and then use
FILEPATH to get the location f the data files. (MG_SRC_ROOT is at
http://michaelgalloy.com/wp-content/uploads/2007/07/mg_src_r oot.pro)

2. Put the data in some special place that I can find later (i.e.
using APP_USER_DIR).

Mike
--
www.michaelgalloy.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Call_External error in Virtual Machine
Next Topic: Re: speed, size, contouring

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 07:31:09 PDT 2025

Total time taken to generate the page: 1.83966 seconds