Routine to locate .PRO file? [message #2545] |
Wed, 27 July 1994 03:48 |
HADFIELD[1]
Messages: 9 Registered: March 1994
|
Junior Member |
|
|
When one types (say) ".run,aprocedure" at the IDL command prompt, IDL searches
the current directory, then the directories in the !PATH system variable, for
a file with the name aprocedure.pro (under DOS, aprocedu.pro) and compiles it.
My question, is there a function that will return the name (complete with
directory specification) of that file? Or will I have to write one?
I know that in the IDL Astronomy Library there is a procedure called GETPRO
that claims to locate the .pro file as above and copy it to the current
directory. So it looks like that could be modified to do what I want. But it
doesn't seem to handle the DOS 8-character limitation.
============================================================ ==
Mark Hadfield hadfield@greta.niwa.cri.nz
NIWA Marine (Taihoro Nukurangi) NIWA.GRETA:HADFIELD
Wellington, New Zealand
|
|
|