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

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

from sys import executable
from subprocess import Popen, CREATE_NEW_CONSOLE

Popen([executable, 'script.py'], creationflags=CREATE_NEW_CONSOLE)

input('Enter to exit from this launcher script...')

Leave a Comment