Skip to content

refactor: replace os.path with pathlib in workspace scripts#128

Merged
Jammy2211 merged 1 commit intomainfrom
feature/use-pathlib
May 7, 2026
Merged

refactor: replace os.path with pathlib in workspace scripts#128
Jammy2211 merged 1 commit intomainfrom
feature/use-pathlib

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Mechanical refactor replacing all os.path.* and bare path.* (from from os import path) usages with pathlib.Path in workspace scripts. Follow-up to the library refactor in PyAutoLabs/PyAutoFit#1257 — applies the same convention sweep across this workspace.

Scripts Changed

See the diff against main for the full list (each modified script swaps one or more os.path.* / path.* calls for the equivalent pathlib.Path API). No script logic or behaviour changes — purely a syntactic conversion.

Upstream PRs (all merged)

Test Plan

  • Smoke tests pass against the use-pathlib worktree (verified locally — 36/36 across 4 main workspaces; euclid passes with PYAUTO_SKIP_WORKSPACE_VERSION_CHECK=1, a pre-existing issue unrelated to this PR)
  • No script behaviour change — purely API substitution

Refs PyAutoLabs/PyAutoFit#1257.

🤖 Generated with Claude Code

Drop legacy `from os import path` and `os.path.X` usages in workspace
scripts in favour of `pathlib.Path`. Follow-up to library refactor in
PyAutoLabs/PyAutoFit#1257.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant