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

Home » Public Forums » archive » Re: IDL workbench & windows
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: IDL workbench & windows [message #58422] Fri, 01 February 2008 09:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
elwood writes:

> Does anyone know what the system variable is that holds the value of
> the project directory
> in which you are currently working?

Why don't you create your own variable. Here is an IDL
program that is handy:

PRO PWD
CD, CURRENT=thisDir
Print, thisDir
END

Used like this to tell you what directory is the current
directory:

IDL> pwd
G:\IDL\Coyote

You could probably turn this into a function easy enough. :-)

If you want to write programs that can find data files
and other files based on the location of the IDL source
code, use PROGRAMROOTDIR:

http://www.dfanning.com/programs/programrootdir.pro

Use it like this inside of a program named DOIT, to locate
a data file in the same directory as doit.pro:

datafile = Filepath(ROOTDIR=ProgramRootDir(), 'doit_data.dat')

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: from 6.4 to 7.0
Next Topic: K- Nearest neighbor classification

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

Current Time: Thu Oct 09 22:36:36 PDT 2025

Total time taken to generate the page: 1.28125 seconds