I have read other post about dynamic import of modules in python. And they work! The problem is when I am importing a module from a specific folder. If I have the main python code and the module in the same folder:
main.py
module.py
If i do:
var = "module"
module = __import__(var)
It works great. But my module is in a specific folder named "modules"
main.py
modules\module.py
If I do:
var = "a"
module = __import__("modules\\"+var)
It doesn't work. I know that I am pretty close of the solution but I can't get it.
Thank you for your help