Skip to content

Commit 4fe291e

Browse files
authored
Merge pull request #6540 from krassowski/patch-2
Normalise `os_path`
2 parents 8e5bd6b + 73bf317 commit 4fe291e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def to_os_path(path, root=''):
253253
parts = path.strip('/').split('/')
254254
parts = [p for p in parts if p != ''] # remove duplicate splits
255255
path = os.path.join(root, *parts)
256-
return path
256+
return os.path.normpath(path)
257257

258258
def to_api_path(os_path, root=''):
259259
"""Convert a filesystem path to an API path

0 commit comments

Comments
 (0)