I know I can use importlib
to import modules via a string. How can I recreate the import *
functionality using this library? Basically, I want something like this:
importlib.import_module('path.to.module', '*')
My reasons for not name-spacing the imported attributes are deliberate.
Best Answer
Here is a solution: import the module, then one by one make alias in the current namespace: