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

Home » Public Forums » archive » file paths
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
file paths [message #8574] Wed, 02 April 1997 00:00 Go to next message
David is currently offline  David
Messages: 24
Registered: April 1997
Junior Member
hi,

I want to add some code at the top of a fairly large project that will
tell IDL where to look for all the subroutines it'll need. They are in
various different folders, organized by their function. I want the code
to compile everything automatically, even if I move the source around.
(It would be messy to put all the subroutines in the same folder).

Is there any way other than help, /source to show the path of the
currently executing file? If I knew the path to the executing file, I
could append it (with a +) to !path to make this work, right?

Thanks in advance for any help!

cheers!
dave

**********************************************************
David Katz
Esquimalt Defence Research Detachment
co-op student

Contact Info:

phone: 250.363.2925
fax: 250.363.2856
email (work): katz@edrd.dnd.ca
email (play): dkatz@gulf.uvic.ca
web: http://gulf.uvic.ca/~dkatz/index.shtml
Re: file paths [message #8677 is a reply to message #8574] Tue, 08 April 1997 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
David <katz@edrd.dnd.ca> writes:

> hi,

> I want to add some code at the top of a fairly large project that will
> tell IDL where to look for all the subroutines it'll need. They are in
> various different folders, organized by their function. I want the code
> to compile everything automatically, even if I move the source around.
> (It would be messy to put all the subroutines in the same folder).

> Is there any way other than help, /source to show the path of the
> currently executing file? If I knew the path to the executing file, I
> could append it (with a +) to !path to make this work, right?

It seems to me that the simplest thing to do would be to organize all your
folders under a single master folder. Then, by using the + prefix and
expand_path to this master folder, all the subfolders (and sub-subfolders,
etc.) would automatically be included. For example, in Unix one could write

!path = expand_path("+/disk1/thompson/idl") + ":" + !path

and then all the subdirectories under /disk1/thompson/idl that contained .pro
or .sav files would automatically be added to the path. Alternatively, one
could define the IDL_PATH environment variable before calling IDL to get the
same effect, e.g.

setenv IDL_PATH +/disk1/thompson/idl:+/usr/local/rsi/idl_4/lib:+/usr/local/r si/idl_4/examples

Once all the software is in the path, you can use the routine RESOLVE_ALL to
compile all routines called by a given routine, although you don't really need
to do this.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MODULO operator
Next Topic: Re: Default vector font size under X

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

Current Time: Tue Oct 28 10:58:21 PDT 2025

Total time taken to generate the page: 4.16088 seconds