summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-08-02 23:10:16 (GMT)
committerSteven Knight <knight@baldmt.com>2005-08-02 23:10:16 (GMT)
commitb445805eb8ab18108ebc197ab96d78b12e837681 (patch)
tree2b517a79ba2ff2ed90f749255220a1aa41c7ef2a /src
parentba13ad01aed4a53ca197dcce3c161fd28488fbe1 (diff)
downloadSCons-b445805eb8ab18108ebc197ab96d78b12e837681.zip
SCons-b445805eb8ab18108ebc197ab96d78b12e837681.tar.gz
SCons-b445805eb8ab18108ebc197ab96d78b12e837681.tar.bz2
Use 'con', not '/dev/tty', as the Trace() default on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Debug.py9
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: