Skip to content Skip to sidebar Skip to footer

Dynamic Module Importing Is Trying To Do Relative Imports When It Shouldn't

I'm doing some not-so standard import of python modules. I'm adding a finder object to sys.meta_path to do things like importing a module via http/ssh/svn/etc. I'm able to successf

Solution 1:

What ended up fixing this was importing absolute_path from future. I thought that was already active by default in python 2.7.3, but I guess I was mistaken:

from __future__ import absolute_path

Post a Comment for "Dynamic Module Importing Is Trying To Do Relative Imports When It Shouldn't"