diff -r c02818d7e29f -r 7e61baa047f0 util/paths.py --- a/util/paths.py Mon Aug 14 22:30:41 2017 +0300 +++ b/util/paths.py Mon Aug 14 23:27:15 2017 +0300 @@ -25,15 +25,18 @@ import os import sys + def AbsFile(file): if isinstance(file, str): file = unicode(file,sys.getfilesystemencoding()) return file + def AbsDir(file): file = AbsFile(file) return os.path.dirname(os.path.realpath(file)) + def AbsNeighbourFile(file, *args): return os.path.join(AbsDir(file), *args)