Ignore:
Timestamp:
03/16/07 15:13:14 (17 years ago)
Author:
smasson
Message:

bugfix in path usage (continuation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Utilities/createpro.pro

    r227 r229  
    7979   putfile, filename, ['pro ' + shortfilename + kwdlist $ 
    8080                       , 'compile_opt idl2, hidden, strictarrsubs', command, 'return', 'end'] 
     81; is dirname in !path? 
     82   cd, current = here 
     83   pathlist = [here, strsplit(!path, path_sep(/search_path),/extract)] 
     84   inpath = total((file_search(dirname))[0] EQ pathlist) 
     85   IF inpath EQ 0 THEN !path = !path + path_sep(/search_path) + inpath 
    8186; update the list of .pro and .sav in !PATH 
    8287   path_cache, /rebuild 
Note: See TracChangeset for help on using the changeset viewer.