Skip to content

Commit c3ec104

Browse files
martinRenoumeeseeksmachine
authored andcommitted
Backport PR jupyter-server#886: Normalize os_path
1 parent 6a6e703 commit c3ec104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def to_os_path(path, root=""):
111111
parts = path.strip("/").split("/")
112112
parts = [p for p in parts if p != ""] # remove duplicate splits
113113
path = os.path.join(root, *parts)
114-
return path
114+
return os.path.normpath(path)
115115

116116

117117
def to_api_path(os_path, root=""):

0 commit comments

Comments
 (0)