Skip to content

Commit 87c067e

Browse files
authored
Fix: exception when external link exists under windows
1 parent 199ca85 commit 87c067e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refresh.template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ def _ensure_external_workspaces_link_exists():
12811281
# Normalize the path for matching
12821282
# First, workaround a gross case where Windows readlink returns extended path, starting with \\?\, causing the match to fail
12831283
if is_windows:
1284-
current_dest = current_dest.removeprefix('\\\\?\\')
1284+
current_dest = str(current_dest).removeprefix('\\\\?\\')
12851285
current_dest = pathlib.Path(current_dest)
12861286

12871287
if dest != current_dest:

0 commit comments

Comments
 (0)