Skip to content

Commit e7d6c33

Browse files
authored
Compact Windows runfiles fix
1 parent 87c067e commit e7d6c33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

refresh.template.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,8 +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 = str(current_dest).removeprefix('\\\\?\\')
1285-
current_dest = pathlib.Path(current_dest)
1284+
current_dest = pathlib.Path(str(current_dest).removeprefix('\\\\?\\'))
12861285

12871286
if dest != current_dest:
12881287
log_warning(">>> //external links to the wrong place. Automatically deleting and relinking...")

0 commit comments

Comments
 (0)