Redirect to debug.log when running in a Win32 .exe

This commit is contained in:
Dan Smith 2008-07-24 18:15:02 -07:00
parent 4f238a183f
commit 6bbacac540

View file

@ -17,8 +17,15 @@
import gtk
import sys
from csvdump import csvapp
if hasattr(sys, "frozen"):
log = file("debug.log", "w", 0)
sys.stderr = log
sys.stdout = log
print "Log initialized"
a = csvapp.CsvDumpApp()
a.run()