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

Home » Public Forums » archive » Re: Mark directory for exclusion from !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: Mark directory for exclusion from !PATH [message #38154 is a reply to message #38152] Fri, 20 February 2004 14:00 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
JD Smith wrote:
> Is their
> an equivalent way to mark a directory so that it is not included in
> !PATH at all? Something like "IDL_IGNORE" or some such comes to mind,
> but I haven't found a mention of it.

This reminds me of a frustrating experience I had last week when IDL
would hang after I added a large directory structure to the !PATH. It
turns out that there was a bad logical directory link that was putting
IDL into an infinite loop trying to resolve the subdirectories. I only
solved the problem after switching back to V5.5 which gave explicit
error messages -- unlike V6.0 which would hang silently.

As for your original question, I can only think of the crude method of
explicitly removing directory names from a string created using
EXPAND_PATH before adding it to your !PATH, e.g. to remove the directory
/home/landsman/pro/bte from the list of directories in
+/home/landsman/pro in your startup file

st = expand_path('+/home/landsman/pro')
st = repstr(st,'/home/landsman/pro/bte:)
!path = st + ':' + !path

where repstr.pro (ftp://idlastro.gsfc.nasa.gov/pub/pro/misc/repstr.pro)
removes the target string from object string.

--Wayne Landsman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: String composition
Next Topic: Re: Array string

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

Current Time: Sun Oct 12 04:35:30 PDT 2025

Total time taken to generate the page: 2.40285 seconds