Skip to content

Commit 426a4c6

Browse files
serverapp: Use .absolute() instead of .resolve() for symlinks (#712)
1 parent 55d9f68 commit 426a4c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_server/serverapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,9 +2539,9 @@ def _resolve_file_to_run_and_root_dir(self):
25392539
is configured, root_dir will be set to the parent
25402540
directory of file_to_run.
25412541
"""
2542-
rootdir_abspath = pathlib.Path(self.root_dir).resolve()
2542+
rootdir_abspath = pathlib.Path(self.root_dir).absolute()
25432543
file_rawpath = pathlib.Path(self.file_to_run)
2544-
combined_path = (rootdir_abspath / file_rawpath).resolve()
2544+
combined_path = (rootdir_abspath / file_rawpath).absolute()
25452545
is_child = str(combined_path).startswith(str(rootdir_abspath))
25462546

25472547
if is_child:

0 commit comments

Comments
 (0)