Skip to content

Improve path resolution#1605

Merged
bug-or-feature merged 30 commits intopst-group:developfrom
bug-or-feature:feature-1603-improve-path-resolution
Mar 4, 2026
Merged

Improve path resolution#1605
bug-or-feature merged 30 commits intopst-group:developfrom
bug-or-feature:feature-1603-improve-path-resolution

Conversation

@bug-or-feature
Copy link
Member

Fix for #1603. This PR:

  • refactors path resolution functions in syscore.fileutils to delegate OS specific functionality to pathlib
  • resolves absolute paths using a single variable at module load time using importlib.util.find_spec
  • replaces file path manipulation code using os with pathlib
  • simplifies and refactors resolution of private config files
  • adds main functions for sysproduction scripts where needed
  • adds extensive unit tests for syscore.fileutils, and runs them in CI with all OS flavours
  • adds more unit tests for sysdata.config.configdata

Any questions, issues or concerns please shout

@bug-or-feature bug-or-feature merged commit 66035ab into pst-group:develop Mar 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant