I have this project structure
utilities.py
/references
module1.py
module2.py
...
Into the utilities.py file, I would like to have a function with dynamically import with parameters like that :
def import(self, file):
from references.file import file
...
Into the utilities.py file I use
import("module1")
But it doesn't work, I have the following error
from references.file import steps ModuleNotFoundError: No module named 'references.file'
I need some help, thank you