From: stevenknight Date: Tue, 2 Aug 2005 23:10:16 +0000 (+0000) Subject: Use 'con', not '/dev/tty', as the Trace() default on Windows. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=10d4dba251e8ead23f283b5299458025fcd5d932;p=scons.git Use 'con', not '/dev/tty', as the Trace() default on Windows. git-svn-id: http://scons.tigris.org/svn/scons/trunk@1315 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Debug.py b/src/engine/SCons/Debug.py index 179eb66b..bb49dbd3 100644 --- a/src/engine/SCons/Debug.py +++ b/src/engine/SCons/Debug.py @@ -157,10 +157,13 @@ def func_shorten(func_tuple): TraceFP = {} -TraceDefault = '/dev/tty' +if sys.platform == 'win32': + TraceDefault = 'con' +else: + TraceDefault = '/dev/tty' -def Trace(msg, file=None, mode='a'): - """Write a trace a message to a file. Whenever a file is specified, +def Trace(msg, file=None, mode='w'): + """Write a trace message to a file. Whenever a file is specified, it becomes the default for the next call to Trace().""" global TraceDefault if file is None: