I have python module that should run python scripts (let's call it launcher)
I have list of scripts. Each of them has it's own virtual environment.
Launcher's input:
- name of the script to launch
- path to script
- arguments to pass to script
I need to come up with solution, so that launcher was able to run scripts without creating new processes.
I tried to use __import__()
function, but the main problem is that I don't know how to use script's own virtual environment.