Skip to content

Commit 09fee2f

Browse files
authored
Merge pull request hedronvision#161 from nosamad/topic/fix_windows_link_handling
Fix: exception when external link exists under windows and runfiles enabled
2 parents 199ca85 + e7d6c33 commit 09fee2f

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 = 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)