Changeset 410

Show
Ignore:
Timestamp:
Fri Jan 18 09:43:46 2008
Author:
danielevarrazzo
Message:

Algorithm for symlink resolution fixed.

The previous version was simply wrong: the pointed name is relative
to the link name, not a file name to look for in the PATH.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/dl/Configure.py

    r252 r410  
    39 39 if not iswin:  
    40 40     while os.path.islink(python):  
    41           python = os.readlink(python)  
    42           if not os.path.isabs(python):  
    43               for dir in string.split(os.environ['PATH'], os.pathsep):  
    44                   test = os.path.join(dir, python)  
    45                   if os.path.exists(test):  
    46                       python = test  
    47                       break  
      41         python = os.path.join(os.path.split(python)[0], os.readlink(python))  
      42  
    48 43 toc = bindepend.Dependencies([('', python, '')])  
    49 44 if iswin and sys.version[:3] == '1.5':