-
Notifications
You must be signed in to change notification settings - Fork 113
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
[Feature Request] Specify module name instead of filename #199
Comments
Is this just convenience functionality to not need to find the location of a module, or is there something special about modules found with |
Hi, yes it is mostly a convenience. If you have lots of packages installed, some editable some not editable, depending on which env, etc it can be a lot of work to seek them in the folder tree. Also if you want to automate some sort of reporting, it makes sense to have a central place to call pydeps independently of the location of the various project worspaces. I could create a custom wrapper around pydeps but I thought it'd more practical to have this builtin ... |
Passing the filename can cause pydeps to incorrectly resolve imports. If you have modules like:
and then passing But if we were able to run edit: Oh I guess it resolves differently if |
Python seems to think that
Python:
You might be running into the difference in import-behavior between scripts and imports..? |
Just been using this a while so it might already be possible but I couldn't find it anywhere ...
I'd like to run pydeps on some of my installed modules by specifying a module name instead of a file/folder name.
I suggest to add a flag like
-m
or--module
to specify a module name instead of a file name. pydeps can useimportlib.util.find_spec
to locate the module and use this as filename.Thanks for the great software!
The text was updated successfully, but these errors were encountered: