importlib: No module named
I have a folder models with a file model.py. I want to import class Model from it and name it NamedModel. If I do this using NamedModel = importlib.import_module("models.model.Model"), I have the followin error: No module named models.model.Model. Although, if I use from models.model import Model, it works. How do I use importlib to import… Read More importlib: No module named