Created
May 11, 2012 19:25
-
-
Save cshoe/2661915 to your computer and use it in GitHub Desktop.
pkgutil
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
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