Changeset 2315

Show
Ignore:
Timestamp:
11/25/07 12:16:29 (14 months ago)
Author:
andar
Message:

Apply logfile patch for Windows build from Slurdge.

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • tags/deluge-0.5.6.96/scripts/deluge

    r2304 r2315  
    5454if (options.config != None): 
    5555    deluge.common.CONFIG_DIR = options.config 
     56 
     57if hasattr(sys, "frozen"): 
     58    sys.stdout = open(os.path.join(deluge.common.CONFIG_DIR,"deluge.stdout.log"), "w") 
     59    sys.stderr = open(os.path.join(deluge.common.CONFIG_DIR,"deluge.stderr.log"), "w") 
    5660 
    5761def upgrade_old_persistent_state(): 
  • tags/deluge-0.5.6.96/src/common.py

    r2312 r2315  
    4949    INSTALL_PREFIX = '' 
    5050    os.chdir(os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))) 
    51     sys.stdout = open("deluge.stdout.log", "w") 
    52     sys.stderr = open("deluge.stderr.log", "w") 
    5351else: 
    5452    # the necessary substitutions are made at installation time 
  • trunk/scripts/deluge

    r2279 r2315  
    5454if (options.config != None): 
    5555    deluge.common.CONFIG_DIR = options.config 
     56 
     57if hasattr(sys, "frozen"): 
     58    sys.stdout = open(os.path.join(deluge.common.CONFIG_DIR,"deluge.stdout.log"), "w") 
     59    sys.stderr = open(os.path.join(deluge.common.CONFIG_DIR,"deluge.stderr.log"), "w") 
    5660 
    5761def upgrade_old_persistent_state(): 
  • trunk/src/common.py

    r2303 r2315  
    4949    INSTALL_PREFIX = '' 
    5050    os.chdir(os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))) 
    51     sys.stdout = open("deluge.stdout.log", "w") 
    52     sys.stderr = open("deluge.stderr.log", "w") 
    5351else: 
    5452    # the necessary substitutions are made at installation time