Ignore:
Timestamp:
05/24/06 10:22:32 (18 years ago)
Author:
smasson
Message:

tests tst_* work again (brokken since DATA/SRC split)

File:
1 edited

Legend:

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

    r69 r77  
    2323; KEYWORD PARAMETERS: 
    2424; 
     25;     FIRSTFOUND: activate this keyword to stop looking for the file as 
     26;        soon as we found one. 
     27; 
    2528;     IODIRECTORY: A scalar or array variable of string type, containing 
    2629;        directories names where we are looking for the file. by defaut 
     
    3134;        keyword is not taken into account. 
    3235; 
    33 ;     FIRSTFOUND: activate this keyword to stop looking for the file as 
    34 ;        soon as we found one. 
     36;     LOOKALLDIR:activate to look for the file with a recursive search 
     37;        in iodir, homedir, !path + the DATA:TestsData directory if it exists. 
     38; 
     39;     NOPRO: activate to avoid the automatic search of filename 
     40;        completed with '.pro' 
     41; 
     42;     ONLYPRO:force to look only at file ending with .pro 
     43; 
     44;     ONLYNC:force to look only at file ending with .nc 
    3545; 
    3646;     RECURSIVE: performs recursive searching of directory hierarchies. 
     
    4050; 
    4151;     REPERTOIRE: obsolete. keep for compatibility, use directory keyword 
    42 ; 
    43 ;     NOPRO: activate to avoid the automatic search of filename 
    44 ;        completed with '.pro' 
    45 ; 
    46 ;     ONLYPRO:force to look only at file ending with .pro 
    47 ; 
    48 ;     ONLYNC:force to look only at file ending with .nc 
    4952; 
    5053;     UNIQUE: activate to make sure that each element of the output 
     
    102105               , REPERTOIRE = repertoire, NOPRO = nopro, ONLYPRO = onlypro $ 
    103106               , ONLYNC = onlync, UNIQUE = unique, FIRSTFOUND = firstfound $ 
    104                , _extra = ex 
    105 ; 
     107               , LOOKALLDIR = LOOKALLDIR, _extra = ex 
    106108; define where we look for the file 
    107109  CASE 1 OF 
     110    keyword_set(lookalldir):BEGIN  
     111@cm_general 
     112      dirnames = [iodir, homedir, !path] 
     113      tstdtadir= file_dirname(find('find', /onlypro), /mark_directory) 
     114      tstdtadir = (file_search(tstdtadir+'../../DATA/TestsData'))[0] 
     115      IF tstdtadir NE '' THEN dirnames = [tstdtadir, dirnames] 
     116    END 
    108117    keyword_set(iodirectory): dirnames = iodirectory 
    109118    keyword_set(repertoire): dirnames = repertoire 
Note: See TracChangeset for help on using the changeset viewer.