From f7618bccecc622203f09aed834ce7e82eadb3366 Mon Sep 17 00:00:00 2001 From: illuminatedwax Date: Sun, 26 Jun 2011 17:16:30 -0500 Subject: [PATCH] derp, flush() --- pesterchum_debug.py | 1 + pesterchum_debug_linux.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pesterchum_debug.py b/pesterchum_debug.py index b2f5d1f..1b05d37 100644 --- a/pesterchum_debug.py +++ b/pesterchum_debug.py @@ -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() diff --git a/pesterchum_debug_linux.py b/pesterchum_debug_linux.py index ac23a85..7338732 100644 --- a/pesterchum_debug_linux.py +++ b/pesterchum_debug_linux.py @@ -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()