I'm trying to use HTTPImport dynamically in Python , consider the following code:
downloadFrom = '------------SOME-DOMAIN---------------'
globals()['downloadMe'] = 'EmployeeExampleClass'
print('downloadMe value is ===>>> ' , downloadMe ) ##### Prints: EmployeeExampleClass
with httpimport.remote_repo([downloadMe], downloadFrom):
from downloadMe.model import EmployeeExample
This piece of code throws: ModuleNotFoundError: No module named 'downloadMe'
How can we use a dynamic name when Importing modules with Python and globals
?