I have a list of tuples like [(module_name, module_abs_path)(mod2, path2), ...]
The modules are located in the 'modules' subdir where my script lives. I am trying to write a script which reads a conf file and makes some variables from the conf file available to the modules from the modules dir. My intention is to load and run all the modules from this script, so they get access to these variables.
Things I have tried so far but failed:
- Tried using  __import__()but it says running by file name is not allowed
- Tried importlib.import_module()but gives the same error.
How should I go about doing this?
 
     
    