Skip to main content

Find path to python modules from the command line.

Project description

Usage: pywhich PYTHON_MODULE [PYTHON_MODULE]… – which for python modules

Find the source file for PYTHON_MODULE(s),print the result to standard out.

If a .py file cannot be found then the module’s bytecode file is found.

P.S Hmmm. It appears a script with this name which did exactly the same thing already existed… though I somehow failed to know of its existence. This is probably because this is an obvious task and the obvious name of a program which performs this taks. If the author of said script would prefer their generic 7 line script to appear on pypi instead of mine - feel free to email me.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywhich-1.0.1.tar.gz (1.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page