Repository navigation
Commit 1185867
committed
Fix path escaping and label collision in batch naming
Two defects that both fail quietly rather than loudly.
freecad_prepare built the FreeCAD script by hand-escaping paths into
single quotes, but the apostrophe branch of that escaping was a no-op:
in Python source "\'" is simply "'", so the replace swapped an
apostrophe for itself. A STEP file under a path like
C:\Users\Dan's Files\part.step closed the string literal early and the
generated script raised a SyntaxError, which reached the user as an
unexplained "FreeCAD conversion failed". Paths are now interpolated
with %r, which escapes quotes and backslashes together.
alpha_pair restarted at two letters after ZZ, so index 26 produced 'AA'
again -- the same label as index 0. With Products per Letter set low
enough to wrap, two products resolved to one output directory and the
second overwrote the first's renders. The label width now grows with
the wrap count, giving AA..ZZ then AAA..ZZZ. Labels AA..ZZ are
unchanged, so existing output naming is unaffected.1 parent c372a67 commit 1185867
1 file changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
526 | 534 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
| 535 | + | |
533 | 536 | | |
534 | 537 | | |
535 | 538 | | |
| |||
590 | 593 | | |
591 | 594 | | |
592 | 595 | | |
593 | | - | |
594 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
595 | 600 | | |
596 | 601 | | |
597 | | - | |
| 602 | + | |
598 | 603 | | |
599 | 604 | | |
600 | 605 | | |
| |||
608 | 613 | | |
609 | 614 | | |
610 | 615 | | |
611 | | - | |
| 616 | + | |
612 | 617 | | |
613 | 618 | | |
614 | 619 | | |
| |||
0 commit comments