Skip to content

Instantly share code, notes, and snippets.

@YakDriver
Created April 26, 2018 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YakDriver/b72162af1837fd85853ad96c0cc74ffc to your computer and use it in GitHub Desktop.
Save YakDriver/b72162af1837fd85853ad96c0cc74ffc to your computer and use it in GitHub Desktop.
List all files in pythonpath, sys.path, search path
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