Skip to content

Instantly share code, notes, and snippets.

@dvsseed
Created October 9, 2017 06:55
Show Gist options
  • Save dvsseed/f58fb57f45eadb81d418b904cc0ccf1c to your computer and use it in GitHub Desktop.
Save dvsseed/f58fb57f45eadb81d418b904cc0ccf1c to your computer and use it in GitHub Desktop.
To find the location(directory) of Python module sources
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