pesterchum/pesterchum_debug.py

11 lines
318 B
Python
Raw Normal View History

2011-06-26 17:37:28 -04:00
# runs pesterchum but appends stdout/err to log file
import subprocess
import datetime
f = open("debug.log", 'a')
d = datetime.datetime.now()
f.write("=== PESTERCHUM DEBUG %s ===\n" % d.strftime("%m-%d-%y %H-%M"))
2011-06-26 18:16:30 -04:00
f.flush()
2011-06-26 17:37:28 -04:00
p = subprocess.Popen("pesterchum.exe", stdout=f, stderr=subprocess.STDOUT)
p.wait()
f.close()