mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
stderr/stdout win32
This commit is contained in:
parent
4892cf3df2
commit
ad239210dd
1 changed files with 3 additions and 1 deletions
|
@ -55,6 +55,8 @@ import sys
|
||||||
if hasattr(sys, "frozen"):
|
if hasattr(sys, "frozen"):
|
||||||
INSTALL_PREFIX = ''
|
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:
|
else:
|
||||||
# the necessary substitutions are made at installation time
|
# the necessary substitutions are made at installation time
|
||||||
INSTALL_PREFIX = '@datadir@'
|
INSTALL_PREFIX = '@datadir@'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue