util/paths.py
branchpython3
changeset 3760 7270e7e092f8
parent 3752 9f6f46dbe3ae
equal deleted inserted replaced
3759:f713566d5d01 3760:7270e7e092f8
    31         file = str(file, sys.getfilesystemencoding())
    31         file = str(file, sys.getfilesystemencoding())
    32     return file
    32     return file
    33 
    33 
    34 
    34 
    35 def AbsDir(file):
    35 def AbsDir(file):
    36     file = AbsFile(file)
       
    37     return os.path.dirname(os.path.realpath(file))
    36     return os.path.dirname(os.path.realpath(file))
    38 
    37 
    39 
    38 
    40 def AbsNeighbourFile(file, *args):
    39 def AbsNeighbourFile(file, *args):
    41     return os.path.join(AbsDir(file), *args)
    40     return os.path.join(AbsDir(file), *args)