After calling an exe using python script in windows, the exe should run independent of this python script and once it is initiated the control should comeback to python script and executes the further script and control of .py file will die. But on other side before finishing execution, the exe should call this python script.
Ideas would be highly appreciated.
I have tried following commands:
os.system("start test.exe")
os.startfile("test.exe")
os.spawnlv(os.P_NOWAIT, "test.exe")
os.spawnv(os.P_NOWAIT, 'C:\Python31\python.exe', ('python', 'test.py'))
os.execvp("python3", ("test.py", ))