From ad239210dd53c488e28f2caa475ffd71cb1d7a07 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 8 Oct 2007 16:57:00 +0000 Subject: [PATCH] stderr/stdout win32 --- src/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common.py b/src/common.py index a54b48c4a..9008192db 100644 --- a/src/common.py +++ b/src/common.py @@ -54,7 +54,9 @@ else: import sys if hasattr(sys, "frozen"): INSTALL_PREFIX = '' - os.chdir(os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))) + os.chdir(os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))) + sys.stdout = open("deluge.stdout.log", "w") + sys.stderr = open("deluge.stderr.log", "w") else: # the necessary substitutions are made at installation time INSTALL_PREFIX = '@datadir@'