util/paths.py
changeset 1744 69dfdb26f600
parent 1740 b789b695b5c6
child 1847 6198190bc121
equal deleted inserted replaced
1743:c3c3d1318130 1744:69dfdb26f600
    39 
    39 
    40 def AbsNeighbourFile(file, *args):
    40 def AbsNeighbourFile(file, *args):
    41     return os.path.join(AbsDir(file), *args)
    41     return os.path.join(AbsDir(file), *args)
    42 
    42 
    43 
    43 
    44 def AbsParentDir(file, level = 1):
    44 def AbsParentDir(file, level=1):
    45     path = AbsDir(file)
    45     path = AbsDir(file)
    46     for i in range(0, level):
    46     for i in range(0, level):
    47         path = os.path.dirname(path)
    47         path = os.path.dirname(path)
    48     return path
    48     return path