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
For relative imports you have to:
b) provide anchor explicitly
importlib.import_module('.c', 'a.b')
Of course, you could also just do absolute import instead:
importlib.import_module('a.b.c')