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...')
More Related Contents:
- Actual meaning of ‘shell=True’ in subprocess
- How to terminate a python subprocess launched with shell=True
- Python subprocess readlines() hangs
- How to redirect output with subprocess in Python?
- Python subprocess get children’s output to file and terminal?
- Subprocess changing directory
- Blocking and Non Blocking subprocess calls
- Launch a completely independent process
- Understanding Popen.communicate
- How do I pipe a subprocess call to a text file?
- Multiple inputs and outputs in python subprocess communicate
- Python C program subprocess hangs at “for line in iter”
- Popen with conflicting executable/path
- subprocess.Popen() error (No such file or directory) when calling command with arguments as a string
- How to write to stdout AND to log file simultaneously with Popen?
- link several Popen commands with pipes
- Python running as Windows Service: OSError: [WinError 6] The handle is invalid
- Display realtime output of a subprocess in a tkinter widget
- Kill a running subprocess call
- How do I run another script in Python without waiting for it to finish? [duplicate]
- Can you make a python subprocess output stdout and stderr as usual, but also capture the output as a string? [duplicate]
- Why subprocess.Popen doesn’t work when args is sequence?
- Python subprocess: how to use pipes thrice? [duplicate]
- real time subprocess.Popen via stdout and PIPE
- Subprocess timeout failure
- Interacting with bash from python
- What’s the difference between subprocess Popen and call (how can I use them)?
- How to get the output from os.system()? [duplicate]
- Handling directories with spaces Python subprocess.call()
- Opening a process with Popen and getting the PID