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

Home » Public Forums » archive » Re: how to set path?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to set path? [message #25177] Fri, 25 May 2001 15:05 Go to previous message
web is currently offline  web
Messages: 24
Registered: March 2001
Junior Member
Thank you. I set path like you. I donot think it's a good method. When I
change directory, I have to change all, especially when I generate a .sav
file and run on another computer.

Sometimes, When I donot set full path, it can work. But sometimes it cannot.
Why?

"Johnny Lin" <deja_jlin@my-deja.com> wrote in message
news:56528e1a.0105251308.29cfee5f@posting.google.com...
> howdy!
>
> you can append additional directory names to the !Path system variable
> like so:
>
> dir_name1 = '~/prog/idl'
> dir_name2 = '~/arcsym/tools/idl'
>
> !Path = dir_name1 + ':' + !Path
> !Path = dir_name2 + ':' + !Path
>
> the IDL documentation says though that !Path only works for .pro files,
etc.
>
> for data files, i generally prefer specifying a string variable that has
> the entire path in it, and appending it to the filename, like:
>
> pathname = '/users/johnny/datafile'
> filename = 'foo.dat'
> fullname = pathname + '/' + filename
>
> maybe someone else has help on specifying paths for data files.
>
> best,
> -Johnny
>
>
> -------------------------------------------
> Johnny Lin
> CIRES, University of Colorado
> Work Phone: (303) 735-1636
> Web: http://cires.colorado.edu/~johnny/
> -------------------------------------------
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: found it, sorry :)
Next Topic: Re: SPAWN command bug

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

Current Time: Wed Oct 08 15:22:28 PDT 2025

Total time taken to generate the page: 0.00608 seconds