Created
January 6, 2015 21:45
-
-
Save vitiral/fa422211492697d68da7 to your computer and use it in GitHub Desktop.
python import from anywhere
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 imp | |
module = imp.find_module('path/to/module') | |
module = imp.load_module('module_name', *module) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment