diff options
author | Steven Knight <knight@baldmt.com> | 2005-08-02 23:10:16 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-08-02 23:10:16 (GMT) |
commit | d9e1ca86443a2c7d7ac5eda4af883997c8e4f852 (patch) | |
tree | 2b517a79ba2ff2ed90f749255220a1aa41c7ef2a /src/engine/SCons | |
parent | e0a7426d7aff19eb1b7af396086ccebb692a48d3 (diff) | |
download | SCons-d9e1ca86443a2c7d7ac5eda4af883997c8e4f852.zip SCons-d9e1ca86443a2c7d7ac5eda4af883997c8e4f852.tar.gz SCons-d9e1ca86443a2c7d7ac5eda4af883997c8e4f852.tar.bz2 |
Use 'con', not '/dev/tty', as the Trace() default on Windows.
Diffstat (limited to 'src/engine/SCons')
-rw-r--r-- | src/engine/SCons/Debug.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/engine/SCons/Debug.py b/src/engine/SCons/Debug.py index 179eb66..bb49dbd 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: |