How to import a module given the full path?
For Python 3.5+ use: For Python 3.3 and 3.4 use: (Although this has been deprecated in Python 3.4.) For Python 2 use: There are equivalent convenience functions for compiled Python files and DLLs. See also http://bugs.python.org/issue21436.