I am trying to run a python script from another python script in a new shell window. I canβt do it yet. Does anyone know how I can do this?
eg
import subprocess process = subprocess.Popen('test.py', shell=True, stdout=subprocess.PIPE) process.wait() print (process.returncode)
when I run this script, it should run "test.py" in a new shell window.
I use linux, but it will be very useful if you can also provide a solution for windows.
source share