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