Skip to content

Migrate internal paths to use pathlib.Path instead of os.path (fixes #435)#444

Open
Krishnabhuvan wants to merge 6 commits intoPyAr:masterfrom
Krishnabhuvan:pathlib-migration
Open

Migrate internal paths to use pathlib.Path instead of os.path (fixes #435)#444
Krishnabhuvan wants to merge 6 commits intoPyAr:masterfrom
Krishnabhuvan:pathlib-migration

Conversation

@Krishnabhuvan
Copy link
Copy Markdown

Fixes #435

This PR migrates all internal path handling from os.path string-based
operations to pathlib.Path objects across the codebase.

Changes made:

  • fades/helpers.py - replaced os.path.join, os.path.exists, expanduser
  • fades/envbuilder.py - replaced os.path.join, os.path.split, os.path.exists
  • fades/pipmanager.py - replaced os.path.join, os.path.exists
  • fades/parsing.py - replaced os.path.join, os.path.dirname
  • fades/cache.py - replaced os.path.split
  • fades/main.py - replaced os.path.join, os.path.exists

Tests:

All 287 tests pass.

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.

All internal paths should be pathlib.Path, not strings

1 participant