Created
April 26, 2018 19:49
-
-
Save YakDriver/b72162af1837fd85853ad96c0cc74ffc to your computer and use it in GitHub Desktop.
List all files in pythonpath, sys.path, search path
This file contains hidden or 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 | |
import os | |
import glob | |
for path in sys.path: | |
for afile in glob.glob(os.path.join(path, '*')): | |
print(os.path.join(path, afile)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment