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

Home » Public Forums » archive » Removing lib/obsolete directory from one's !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
Removing lib/obsolete directory from one's !PATH [message #92688] Mon, 08 February 2016 09:09 Go to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
The default IDL PATH (<IDL_DEFAULT>) includes the directory $IDL_DIR/lib/obsolete which now contains 167 obsolete procedures. There would be a couple of small advantages to removing this directory from one's path

1. It would free up 167 names in the IDL namespace, which could be used as names for the user's own procedures.
2. It would mean 167 less procedures to search in one's !PATH, when compiling any procedure

A couple of other subdirectories of $IDL_DIR/lib also seem unnecessary, such as /imsl (if you haven't bought the Advanced Math and Statistics license)

The only way I know to exclude the /obsolete directory is to explicitly define one's !PATH to only include the subsets of $IDL_DIR/lib that one wants to keep.


!path = $IDL_DIR/lib:$IDL_DIR/lib/bridges:$IDL_DIR/lib/graphics:' +
expand_path('+$IDL_DIR/itools') + ':$IDL_DIR/lib/datatypes' + ...

I was hoping that EXPAND_PATH might have an "EXCLUDE =" keyword, which would let one expand all subdirectories of a given directory except for a user specified list.

--Wayne
Re: Removing lib/obsolete directory from one's !PATH [message #92692 is a reply to message #92688] Mon, 08 February 2016 14:59 Go to previous message
mick.mitanirc3 is currently offline  mick.mitanirc3
Messages: 16
Registered: August 2015
Junior Member
If anyone did choose to remove the obsolete directory from their path then they had better watch out when sharing code or accepting code from others. You can't be sure that others are not using some of the obsolete code. I was looking at some code (not written by me) last year that had rstrpos calls in it. That was obsolete when I started coding IDL routines 12 years ago.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: xvolume array size limit?
Next Topic: TIME2JD

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

Current Time: Wed Oct 08 09:15:58 PDT 2025

Total time taken to generate the page: 0.00504 seconds