Changeset b490920 in tol


Ignore:
Timestamp:
Jun 27, 2012, 9:14:14 AM (14 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
9ac71e4
Parents:
31f6423
Message:

Fixes #1570 in 3.2

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4879 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/TolConfigManager/methods.tol

    r31f6423 rb490920  
    144144{
    145145//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");
    149163    Set tolAppConfig = Select(tolAppFiles,Real(Text fName)
    150164    {
    … …  
    152166      TextEndAt    (fName,".tol")
    153167    });
     168  //WriteLn("TRACE [LoadConfig] 1.3.2");
    154169    Set versions = EvalSet(tolAppConfig,Text(Text fName)
    155170    {
    156171      Replace(Replace(fName,".tolConfig.",""),".tol","")
    157172    });
     173  //WriteLn("TRACE [LoadConfig] 1.3.3");
    158174    Set versions.sort = Sort(versions, Real(Text a, Text b)
    159175    {
    160176      Compare.VersionString(b,a)
    161177    });
    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")
    163181  });
    164182//WriteLn("TRACE [LoadConfig] 2 _.path='"+_.path+"'");
Note: See TracChangeset for help on using the changeset viewer.