I\'m trying to use importlib.import_module in Python 2.7.2 and run into the strange error.
Consider the following dir structure:
a | + - __ini
I think it's better to use importlib.import_module('.c', __name__) since you don't need to know about a and b.
importlib.import_module('.c', __name__)
a
b
I'm also wondering that, if you have to use importlib.import_module('a.b.c'), why not just use import a.b.c?
importlib.import_module('a.b.c')
import a.b.c