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