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

Home » Public Forums » archive » Re: current directory
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: current directory [message #34292 is a reply to message #34289] Sat, 01 March 2003 10:10 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:

> David Fanning (david@dfanning.com) writes:
>
>> But here is some code that gets you as far as you
>> can get to:
>
> Whoops! I see I used the archaic STR_SEP routine in
> that program. That is an obsolete IDL routine that I
> still have on my path for historical reasons. Better
> to use the modern STRSPLIT function:


Dear David why not exchange the file_which by

;thePath = File_Which(thisRoutine, /Include_Current)

exchanged to

thePath = (strsplit(StrMid(callStack[0], 0, StrPos(callStack[0],$
thisRoutine)),'<',/extr))[1]

All is known already

cheers

Reimar




>
> ;----------------------------------------------------------- -------
> PRO Tester
> Help, Calls=callStack
> thisRoutine = (StrSplit(StrCompress(callStack[0])," ", /Extract))[0]
> callingRoutine = (StrSplit(StrCompress(callStack[1])," ", /Extract))[0]
> Print, 'In ' + thisRoutine + ' which is called by ' + callingRoutine +
> '.'
> thisRoutine = StrLowCase(thisRoutine) + '.pro'
> thePath = File_Which(thisRoutine, /Include_Current)
> thePath = StrMid(thePath, 0, StrPos(thepath, thisRoutine))
> Print, 'The default path to ' + thisRoutine + ' is: ' + thePath
> END
> ;----------------------------------------------------------- -------
>
> Cheers,
>
> David

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: dynamically naming variables
Next Topic: dlm returning ptr array and string array

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

Current Time: Fri Oct 10 20:04:17 PDT 2025

Total time taken to generate the page: 0.95856 seconds