~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-12 06:27:32 UTC
  • Revision ID: mbp@sourcefrog.net-20050412062732-41758e390a6803cc
Fix opening of ~/.bzr.log on Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
    _starttime = os.times()[4]
87
87
 
88
 
    # XXX: Is HOME always set on Windows?
89
 
    trace_fname = os.path.join(os.environ['HOME'], '.bzr.log')
 
88
    # XXX:  Does this always work on Windows?
 
89
    trace_fname = os.path.join(os.path.expanduser('~/.bzr.log'))
90
90
    _tracefile = codecs.open(trace_fname, 'at', 'utf8')
91
91
    t = _tracefile
92
92