Show More
@@ -92,7 +92,7 b' def install_hg():' | |||
|
92 | 92 | if os.path.exists(COVERAGE_FILE): |
|
93 | 93 | os.unlink(COVERAGE_FILE) |
|
94 | 94 | # Create a wrapper script to invoke hg via coverage.py |
|
95 |
os.rename(os.path.join(BINDIR, "hg"), os.path.join(BINDIR, "_hg.py")) |
|
|
95 | os.rename(os.path.join(BINDIR, "hg"), os.path.join(BINDIR, "_hg.py")) | |
|
96 | 96 | f = open(os.path.join(BINDIR, 'hg'), 'w') |
|
97 | 97 | f.write('#!' + sys.executable + '\n') |
|
98 | 98 | f.write('import sys, os; os.execv(sys.executable, [sys.executable, '+ \ |
@@ -107,7 +107,7 b' def output_coverage():' | |||
|
107 | 107 | omit = [BINDIR, TESTDIR, PYTHONDIR] |
|
108 | 108 | if not options.cover_stdlib: |
|
109 | 109 | # Exclude as system paths (ignoring empty strings seen on win) |
|
110 |
omit += [x for x in sys.path if x != ''] |
|
|
110 | omit += [x for x in sys.path if x != ''] | |
|
111 | 111 | omit = ','.join(omit) |
|
112 | 112 | os.chdir(PYTHONDIR) |
|
113 | 113 | cmd = '"%s" "%s" -r "--omit=%s"' % ( |
General Comments 0
You need to be logged in to leave comments.
Login now