Changeset 128 in tailor for vcpx/tailor.py


Ignore:
Timestamp:
08/02/04 17:55:20 (9 years ago)
Author:
lele@…
Hash name:
20040802155520-97f81-bd3291057605088e36b6233dfd0b89c3a9eb50b8
Message:

Use abspath on the configfile to compute relative offset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tailor.py

    r127 r128  
    4040class TailorConfig(object): 
    4141    def __init__(self, options): 
    42         from os.path import split 
     42        from os.path import abspath, split 
    4343         
    4444        self.options = options 
    45         self.basedir = split(options.configfile)[0] 
     45        self.basedir = split(abspath(options.configfile))[0] 
    4646         
    4747    def __call__(self, args): 
     
    5252        if len(args) == 0 and self.options.update: 
    5353            args = [join(self.basedir, r) for r in self.config.keys()] 
    54  
     54             
    5555        for a in args: 
    5656            root = abspath(a) 
Note: See TracChangeset for help on using the changeset viewer.