pesterchum/pesterchum_debug_linux.py
2011-06-26 17:16:30 -05:00

11 lines
329 B
Python

# 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"))
f.flush()
p = subprocess.Popen(["python", "pesterchum.py"], stdout=f, stderr=subprocess.STDOUT)
p.wait()
f.close()