Skip to content

Commit 9dcab72

Browse files
committed
fix fix_test.py
1 parent 3d4aaaa commit 9dcab72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/fix_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ def run_test(test_name):
150150

151151
# Handle --quick-import: extract Lib/... path and copy if needed
152152
if args.quick_import is not None:
153-
src_str = str(args.quick_import)
153+
# Normalize path separators to forward slashes for cross-platform support
154+
src_str = str(args.quick_import).replace("\\", "/")
154155
lib_marker = "/Lib/"
155156

156157
if lib_marker not in src_str:
157-
print(f"Error: --quick-import path must contain '/Lib/' (got: {src_str})")
158+
print(f"Error: --quick-import path must contain '/Lib/' or '\\Lib\\' (got: {args.quick_import})")
158159
sys.exit(1)
159160

160161
idx = src_str.index(lib_marker)

0 commit comments

Comments
 (0)