Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

walk_modules properly handles symlinks #140

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

chadwhawkins
Copy link
Contributor

I encountered an issue using version 0.8.5 of this package with my local pyenv environment which uses symlinks to allow different versions of Python to be installed and swapped around. The issue arises because when calling walk_files an absolute path is given, and thus walk_files returns module paths that are absolute. When slicing out the module import path the non-absolute path is given resulting in issues like ModuleNotFoundError: No module named 'e-packages'

@olirice olirice merged commit c8d21f5 into olirice:master Nov 12, 2024
1 of 13 checks passed
@chadwhawkins chadwhawkins deleted the walk_modules_symlink branch November 12, 2024 18:12
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.

2 participants