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

Home » Public Forums » archive » Locating IDL source code file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Locating IDL source code file [message #44420] Tue, 14 June 2005 04:52 Go to previous message
Craig[1] is currently offline  Craig[1]
Messages: 8
Registered: June 2005
Junior Member
[copied over from comp.lang.idl - don't know how to properly cross-post
it in retrospect using Google groups]


Hi all,

I'm trying to write some code that will read information (like version
numbers and dates) from the source files for procedures and functions
that it uses. In Matlab I would use a command like

>> which fred

to return the full path to the source file "fred.m". How do I get the
same result from IDL v6.1? I've tried something like

IDL> ttt = file_which('fred.pro', /include_current_dir)

but just got a null string returned. This might be because I'm using
the IDLDE, so the routine isn't actually on the search path !PATH, even
though it has been compiled OK when building the project.

Once this problem is solved, I'll also need to determine the filename
for the source file containing a definition of 'fred', because most of
the routines in this project don't have their own 'fred.pro' source
file.

Any ideas?
TIA,
Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: the type parser
Next Topic: Re: launching many widgets at the same time

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

Current Time: Fri Oct 10 12:33:08 PDT 2025

Total time taken to generate the page: 0.64635 seconds