Commit 94377e4
Replace os.path with pathlib throughout codebase
Addresses review comment from gatecat: "while doing this refactor
probably worth also unifying the use of pathlib rather than os.path"
Changes:
- chipflow_lib/config/parser.py: Use Path(__file__).parent instead
of os.path.dirname(__file__), remove os import
- chipflow_lib/platform/silicon.py: Use Path / operator for path
joining instead of os.path.join(), convert to str where needed
for compatibility with subprocess and string operations
All 5 instances of os.path usage in the codebase have been converted.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 62e13c3 commit 94377e4
2 files changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
525 | 526 | | |
526 | 527 | | |
527 | 528 | | |
528 | | - | |
529 | | - | |
| 529 | + | |
| 530 | + | |
530 | 531 | | |
531 | 532 | | |
532 | | - | |
| 533 | + | |
533 | 534 | | |
534 | 535 | | |
535 | | - | |
| 536 | + | |
536 | 537 | | |
537 | 538 | | |
538 | | - | |
539 | | - | |
| 539 | + | |
| 540 | + | |
540 | 541 | | |
541 | | - | |
| 542 | + | |
0 commit comments