SyntaxFix
Write A Post
Hire A Developer
Questions
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