Changeset 243


Ignore:
Timestamp:
04/12/07 10:52:32 (17 years ago)
Author:
smasson
Message:

small bugfixes

Location:
trunk/SRC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro

    r232 r243  
    258258  ENDIF 
    259259  IF n_elements(idlfile) NE 0 THEN BEGIN 
     260    idlfile = isafile(filename = idlfile, /onlypro, title = '.pro file used to define the grid?') 
    260261    widget_control, basemeshload, set_value = idlfile 
    261262    selectfile_event, {ID:basemeshload, TOP:base, HANDLER:base} 
    262263    widget_control, basemeshload, get_value = idlfile2 
    263     IF idlfile2[0] NE '' THEN widget_control, gdldid, set_value = 1 
     264    widget_control, gdldid, set_value = 1 
    264265  ENDIF 
    265266  IF n_elements(argspro) NE 0 THEN widget_control, argbase, set_value = argspro 
  • trunk/SRC/Utilities/createfunc.pro

    r242 r243  
    6868   cd, current = here 
    6969   pathlist = [here, strsplit(!path, path_sep(/search_path),/extract)] 
    70    inpath = total((file_search(dirname))[0] EQ pathlist) 
    71    IF inpath EQ 0 THEN !path = !path + path_sep(/search_path) + inpath 
     70   inpath = total((file_search(dirname, /fully_qualify_path))[0] EQ pathlist) 
     71   IF inpath EQ 0 THEN !path = dirname + path_sep(/search_path) + !path 
    7272; update the list of .pro and .sav in !PATH 
    7373   path_cache, /rebuild 
  • trunk/SRC/Utilities/createpro.pro

    r242 r243  
    7878   cd, current = here 
    7979   pathlist = [here, strsplit(!path, path_sep(/search_path),/extract)] 
    80    inpath = total((file_search(dirname))[0] EQ pathlist) 
    81    IF inpath EQ 0 THEN !path = !path + path_sep(/search_path) + inpath 
     80   inpath = total((file_search(dirname, /fully_qualify_path))[0] EQ pathlist) 
     81   IF inpath EQ 0 THEN !path = dirname + path_sep(/search_path) + !path 
    8282; update the list of .pro and .sav in !PATH 
    8383   path_cache, /rebuild 
  • trunk/SRC/Utilities/isadirectory.pro

    r237 r243  
    6565  ENDIF 
    6666; 
    67   directory = file_search(directory, /mark_directory) 
     67  directory = file_search(directory, /mark_directory, /test_directory, /fully_qualify_path) 
    6868  IF n_elements(directory) EQ 1 THEN RETURN, directory[0] $ 
    6969  ELSE RETURN, directory 
Note: See TracChangeset for help on using the changeset viewer.