Skip to content

Instantly share code, notes, and snippets.

@cshoe
Created May 11, 2012 19:25
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 cshoe/2661915 to your computer and use it in GitHub Desktop.
Save cshoe/2661915 to your computer and use it in GitHub Desktop.
pkgutil
importer = ImpImporter('full/path/to/module/dir/')
loader = importer.find_module(<module name without .py>)
m = loader.load_module(<module name without .py>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment