~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/py2exe_boot_common.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-01 08:02:42 UTC
  • mfrom: (5390.3.3 faster-revert-593560)
  • Revision ID: pqm@pqm.ubuntu.com-20100901080242-esg62ody4frwmy66
(spiv) Avoid repeatedly calling self.target.all_file_ids() in
 InterTree.iter_changes. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
import sys
10
10
if sys.frozen == "windows_exe":
 
11
 
11
12
    class Blackhole(object):
12
13
        softspace = 0
13
14
        def write(self, text):
17
18
    sys.stdout = Blackhole()
18
19
    sys.stderr = Blackhole()
19
20
    del Blackhole
20
 
 
21
 
# add more directories to sys.path to allow "installing" third-party libs
22
 
# required by some plugins (see bug #743256)
23
 
import os
24
 
sys.path.append(os.path.join(os.path.dirname(sys.executable), 'site-packages'))
25
 
del os
26
21
del sys
27
22
 
28
23
# Disable linecache.getline() which is called by