Commit 2fc5c84
committed
Fix Windows path handling in child process tests
Windows file paths contain backslashes that were being interpreted as
escape sequences when embedded in Python code strings, causing syntax
errors like "truncated \UXXXXXXXX escape".
The fix:
1. Added escape_path_for_python() helper that converts backslashes to
forward slashes (which work on all platforms)
2. Updated all file path interpolations to use this helper
3. Fixed indentation in the grandchild script
This ensures Windows paths like C:\Users\... are properly handled
when embedded in dynamically generated Python scripts.
Reported-by: fweinberger1 parent 2990d6b commit 2fc5c84
1 file changed
+16
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
381 | 387 | | |
382 | 388 | | |
383 | 389 | | |
384 | | - | |
| 390 | + | |
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
389 | 395 | | |
390 | | - | |
| 396 | + | |
391 | 397 | | |
392 | 398 | | |
393 | 399 | | |
| |||
491 | 497 | | |
492 | 498 | | |
493 | 499 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
499 | 505 | | |
500 | 506 | | |
501 | 507 | | |
502 | 508 | | |
503 | 509 | | |
504 | | - | |
| 510 | + | |
505 | 511 | | |
506 | 512 | | |
507 | 513 | | |
| |||
511 | 517 | | |
512 | 518 | | |
513 | 519 | | |
514 | | - | |
| 520 | + | |
515 | 521 | | |
516 | 522 | | |
517 | 523 | | |
| |||
589 | 595 | | |
590 | 596 | | |
591 | 597 | | |
592 | | - | |
| 598 | + | |
593 | 599 | | |
594 | 600 | | |
595 | 601 | | |
| |||
0 commit comments