Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 195 Bytes
from subprocess import Popen
# run process as child (still receive process output)
pid = Popen(['build/Debug/TestEngine']).pid
# store pid
with open('pid.tmp', 'w') as f:
f.write(str(pid))
You can’t perform that action at this time.