At the moment I am running a bash command from within Python using the following method:
os.system(cmd)
However I need to run the command in a new shell/terminal. Does anyone know how to do this?
Thanks, Dan
At the moment I am running a bash command from within Python using the following method:
os.system(cmd)
However I need to run the command in a new shell/terminal. Does anyone know how to do this?
Thanks, Dan
I am using the following method (this will also redirect stderr to stdout):
Windows "WshShell", Google it, is the answer. My complete steps:
Install
Run
WshShell.run() is what you need, there are many different ways to run. hidden window, new window, full screen, minimized, ... etc.
os.system()
is deprecated in favour of :