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

Home » Public Forums » archive » FILEPATH bug (feature) in IDl for Windows
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
FILEPATH bug (feature) in IDl for Windows [message #1471] Wed, 29 September 1993 14:19
hadfield is currently offline  hadfield
Messages: 11
Registered: October 1993
Junior Member
A problem and a solution: When its TMP keyword is set, the
USERLIB function FILEPATH in IDL (version 3.1) is supposed
to return a fully-qualified pathname in the "proper place for temporary files
under the current operating system". When run under Windows on my system it
gives:

IDL> print,filepath('foo.dat',/tmp)
\tmp\foo.dat

The solution is to replace the following code:

IF (do_tmp) THEN BEGIN
CASE !VERSION.OS OF
...
'windows': root_dir = '\tmp'


============================================================ ===========
Mark Hadfield NIWA Oceanographic (Taihoro Nukurangi)
hadfield@storm.greta.cri.nz Wellington, New Zealand
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading files with unknown amount of data
Next Topic: FILEPATH bug/feature in IDL for Windows

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

Current Time: Wed Oct 08 15:37:33 PDT 2025

Total time taken to generate the page: 0.00542 seconds