Changeset 34

Show
Ignore:
Timestamp:
Sun Sep 11 17:13:07 2005
Author:
giovannibajo
Message:

Fix Makespec.py for Python 1.5

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/Makespec.py

    r23 r34  
    95 95         assert os.path.abspath(from_path)==from_path, \  
    96 96             "path '%s' should already be absolute" % (from_path,)  
    97           if filename.startswith(from_path):  
      97         if filename[:len(from_path)] == from_path:  
    97 97             rest = filename[len(from_path):]  
    98 98             if rest[0] in "\\/":  
     
    106 106 class Path:  
    107 107     def __init__(self, *parts):  
    108           self.path = os.path.join(*parts)  
      108         self.path = apply(os.path.join, parts)  
    108 108         self.variable_prefix = self.filename_suffix = None  
    109 109     def __repr__(self):