I am trying to run two python scripts in the third python script. The two python scripts got executed simultaneously without waiting for the execution of one script after the other.
I tried time.sleep(100)
but it's not working.
a1 = "a.py"
b1 = "b.py"
python_path = '/opt/dev_ai/bin/python'
execution = subprocess.Popen([python_path,ml_path+a1,str(rule)])
time.sleep(100)
execution=subprocess.Popen([python_path,ml_path+scor+b1,str(rule)])
b1 started running before the completion of a1.