diff options
Diffstat (limited to 'packaging/Pref_Mod/pref_modifier.py')
-rw-r--r-- | packaging/Pref_Mod/pref_modifier.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/Pref_Mod/pref_modifier.py b/packaging/Pref_Mod/pref_modifier.py index 96b6a29f7..a4c657ea0 100644 --- a/packaging/Pref_Mod/pref_modifier.py +++ b/packaging/Pref_Mod/pref_modifier.py @@ -15,6 +15,7 @@ if os.name=="nt": try:
capture_file = u"".join((sys.executable[:-4], "_console.log"))
sys.stdout = open(capture_file, 'w')
+ sys.stderr = sys.stdout
capture_console = True # already trapped, don't try more.
except:
pass
@@ -36,9 +37,10 @@ if os.name=="nt": capture_file = os.path.normpath(u"".join((tmpFilePath,\
"/NE1_console.log")))
sys.stdout = open(capture_file, 'w')
+ sys.stderr = sys.stdout
capture_console = True
except:
- print >> sys.__stderr__, \
+ print >> sys.stderr, \
"Failed to create any console log file."
capture_console = False
|