derp, flush()
This commit is contained in:
parent
bf143b8842
commit
f7618bccec
2 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ import datetime
|
||||||
f = open("debug.log", 'a')
|
f = open("debug.log", 'a')
|
||||||
d = datetime.datetime.now()
|
d = datetime.datetime.now()
|
||||||
f.write("=== PESTERCHUM DEBUG %s ===\n" % d.strftime("%m-%d-%y %H-%M"))
|
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 = subprocess.Popen("pesterchum.exe", stdout=f, stderr=subprocess.STDOUT)
|
||||||
p.wait()
|
p.wait()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
|
@ -4,6 +4,7 @@ import datetime
|
||||||
f = open("debug.log", 'a')
|
f = open("debug.log", 'a')
|
||||||
d = datetime.datetime.now()
|
d = datetime.datetime.now()
|
||||||
f.write("=== PESTERCHUM DEBUG %s ===\n" % d.strftime("%m-%d-%y %H-%M"))
|
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 = subprocess.Popen(["python", "pesterchum.py"], stdout=f, stderr=subprocess.STDOUT)
|
||||||
p.wait()
|
p.wait()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
Loading…
Reference in a new issue