def xnormpath(path):
    # replace escapes and Windows slashes
    normalized = posixpath.normpath(path).replace(b'\\', b'/')
    # fold the result
    return posixpath.normpath(normalized)
Cross-platform version of os.path.normpath
dataset/ETHPy150Open ensime/ensime-sublime/patch.py/xnormpath