~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/py2exe_boot_common.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

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
 
 
12
11
    class Blackhole(object):
13
12
        softspace = 0
14
13
        def write(self, text):
18
17
    sys.stdout = Blackhole()
19
18
    sys.stderr = Blackhole()
20
19
    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
21
26
del sys
22
27
 
23
28
# Disable linecache.getline() which is called by