View difference between Paste ID: mNNCH1vY and dQUfLNSB
SHOW: | | - or go back to the newest paste.
1
from subprocess import Popen, CREATE_NEW_CONSOLE
2
import sys
3
4-
if sys.argv[1] == "even":
4+
if sys.argv[1] == "1":
5-
   command="python even.py"
5+
   command="python script1.py"
6
else:
7-
   command="python odd.py"
7+
   command="python script2.py"
8
9
Popen(['cmd', '/K', command],creationflags=CREATE_NEW_CONSOLE)