Changeset 297


Ignore:
Timestamp:
Feb 28, 2008 2:35:27 PM (15 years ago)
Author:
srkline
Message:

turn off file checking in the User Procedures folder if "NCNR_User_Procedures" are present as an alias. If it's present as a true folder, the check will pass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/Packages/ModelPicker/SANSModelPicker_v40.ipf

    r273 r297  
    6666                // a switch for me to turn off file checking 
    6767                Variable/G checkForFiles=1              //set to true initially 
     68                 
     69                // turn off file checking if the proper alias to the NCNR procedures is there 
     70                PathInfo igor 
     71                NewPath/O/Q tmpUPPath S_Path + "User Procedures"   
     72                String fileList = IndexedFile(tmpUPPath,-1,"????") 
     73                if(strsearch(fileList, "NCNR_User_Procedures", 0  , 2) != -1)   //ignore case 
     74                        checkforfiles = 0 
     75                        Print "found the proper procedures" 
     76                endif 
     77                // always turn off file checking for me 
    6878                checkForFiles = !(stringmatch(ParseFilePath(0,SpecialDirPath("Desktop",0,0,0),":",1,1),"s*ine"))                //zero for me 
    6979                 
Note: See TracChangeset for help on using the changeset viewer.