Created
October 9, 2017 06:55
-
-
Save dvsseed/f58fb57f45eadb81d418b904cc0ccf1c to your computer and use it in GitHub Desktop.
To find the location(directory) of Python module sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
site_packages = next(p for p in sys.path if 'site-packages' in p) | |
print site_packages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment