def path_make_absolute(path): p = os.path.abspath(path) if p[-1] == os.path.sep: return p else: return p + os.path.sep