Python 3.6.7, Windows 7/10
I have to run two commands one after the other using subprocess.run. The first command opens a new command prompt. The next command needs to be run in the newly created command prompt. With the code below, the second command always runs in the initial command prompt. Can this be done?
import subprocess
subprocess.run('first command', shell=True) #first command opens a new command prompt
subprocess.run('second command', shell=True) #second command needs to be run in the newly created command prompt