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 #58618 is a reply to message #58422] Mon, 04 February 2008 14:51 Go to previous message
elwood is currently offline  elwood
Messages: 23
Registered: February 2007
Junior Member
Current dir is easy enough to find out,
but I am talking about the PROJECT folder.
The problem is that I may be running a program from a project but I
find that the workbench
has my current dir set to one thing and the project dir set to
something entirely different.

When I open a previously created project,
workbench doesnt seem to be cd'ing to the Project folder


On Feb 1, 11:57 am, David Fanning <n...@dfanning.com> wrote:
> 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: Fri Oct 10 06:58:32 PDT 2025

Total time taken to generate the page: 0.47833 seconds