derp, flush()

This commit is contained in:
illuminatedwax 2011-06-26 17:16:30 -05:00
parent bf143b8842
commit f7618bccec
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ 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("pesterchum.exe", stdout=f, stderr=subprocess.STDOUT)
p.wait()
f.close()

View file

@ -4,6 +4,7 @@ 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()