subprocess.Popen in different console

To open in a different console, do (tested on Win7 / Python 3):

from subprocess import Popen, CREATE_NEW_CONSOLE

Popen('cmd', creationflags=CREATE_NEW_CONSOLE)

input('Enter to exit from Python script...')

Related

How can I spawn new shells to run python scripts from a base python script?

Leave a Comment