mirror of
https://github.com/kk7ds/chirp
synced 2026-08-13 17:51:36 -04:00
Redirect to debug.log when running in a Win32 .exe
This commit is contained in:
parent
4f238a183f
commit
6bbacac540
1 changed files with 7 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue