Changeset b490920 in tol
- Timestamp:
- Jun 27, 2012, 9:14:14 AM (14 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 9ac71e4
- Parents:
- 31f6423
- File:
-
- 1 edited
-
tol/stdlib/TolConfigManager/methods.tol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/TolConfigManager/methods.tol
r31f6423 rb490920 144 144 { 145 145 //WriteLn("TRACE [LoadConfig] 1"); 146 Text lastPath = If(FileExist(_.path),_.path, 147 { 148 Set tolAppFiles = GetDir(TolAppDataPath)[1]; 146 Set tolApp = GetDir(TolAppDataPath); 147 Text lastPath = Case( 148 FileExist(_.path), 149 { 150 //WriteLn("TRACE [LoadConfig] 1.1"); 151 _.path 152 }, 153 !Card(tolApp), 154 { 155 //WriteLn("TRACE [LoadConfig] 1.2"); 156 "::,$?" 157 }, 158 1==1, 159 { 160 //WriteLn("TRACE [LoadConfig] 1.3"); 161 Set tolAppFiles = tolApp[1]; 162 //WriteLn("TRACE [LoadConfig] 1.3.1"); 149 163 Set tolAppConfig = Select(tolAppFiles,Real(Text fName) 150 164 { … … 152 166 TextEndAt (fName,".tol") 153 167 }); 168 //WriteLn("TRACE [LoadConfig] 1.3.2"); 154 169 Set versions = EvalSet(tolAppConfig,Text(Text fName) 155 170 { 156 171 Replace(Replace(fName,".tolConfig.",""),".tol","") 157 172 }); 173 //WriteLn("TRACE [LoadConfig] 1.3.3"); 158 174 Set versions.sort = Sort(versions, Real(Text a, Text b) 159 175 { 160 176 Compare.VersionString(b,a) 161 177 }); 162 TolAppDataPath+".tolConfig."+versions.sort[1]+".tol" 178 //WriteLn("TRACE [LoadConfig] 1.3.4"); 179 If(!Card(versions.sort),"::,$??", 180 TolAppDataPath+".tolConfig."+versions.sort[1]+".tol") 163 181 }); 164 182 //WriteLn("TRACE [LoadConfig] 2 _.path='"+_.path+"'");
Note: See TracChangeset
for help on using the changeset viewer.
