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

Home » Public Forums » archive » How to get the current working directory
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to get the current working directory [message #70111] Thu, 11 March 2010 02:35
aberte@gmail.com is currently offline  aberte@gmail.com
Messages: 8
Registered: December 2006
Junior Member
In IDL command line, if I type

CD, C=c & PRINT, c

I get

/home/bert_an

Say I have a routine main.pro under /home/bert_an/MyCode
so the complete path is /home/bert_an/MyCode/main.pro

Is there a function that while running main.pro gives me the path to
this file?
Example:

IDL> print, PathFunction
/home/bert_an/MyCode

Thank you,
Andrés
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Desactivate “TIFF World File Input Projection” dialog
Next Topic: queryvizier error (astronomy library)

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

Current Time: Fri Oct 10 22:09:14 PDT 2025

Total time taken to generate the page: 1.04230 seconds