Run other python script with other venv from python script

Hi,

I essentially want to run this command :

os.system('source .venv/bin/activate && echo -e "arg1\narg2\narg3" | python  up {final_destination_path} -s "WEB"')run.py

But I get the error "sh: 1: source: not found"

I want to run another python script, giving it some data from the first script, and sending some input; all this under a specific venv (which is different than the venv of the first python script).

Is there a way to do that ?

Another way would be to execute both python scripts from a bash script, but I'd rather avoid that to limit complexity