diff options
author | Ned Batchelder <nedbat@gmail.com> | 2015-12-24 09:02:59 -0500 |
---|---|---|
committer | Ned Batchelder <nedbat@gmail.com> | 2015-12-24 09:02:59 -0500 |
commit | 846426f10779bc0c97b4755b901a8b58e5405e09 (patch) | |
tree | 95dfb7a3eea55c21eabfc717a658dbaddde79e4e /igor.py | |
parent | ae91d45616dbc4dddcd66955b41ffb5fa420ddda (diff) | |
parent | 24f2dd5b4f8954133c4767905a67352d50e3e465 (diff) | |
download | python-coveragepy-git-846426f10779bc0c97b4755b901a8b58e5405e09.tar.gz |
Merged in rodcloutier/coverage.py/windows_multiprocessing_support (pull request #76)
Fix Windows support for multiprocessing monkey patch
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -328,7 +328,12 @@ def print_banner(label): if '__pypy__' in sys.builtin_module_names: version += " (pypy %s)" % ".".join(str(v) for v in sys.pypy_version_info) - which_python = os.path.relpath(sys.executable) + try: + which_python = os.path.relpath(sys.executable) + except ValueError: + # On Windows having a python executable on a different drives + # than the sources cannot be relative + which_python = sys.executable print('=== %s %s %s (%s) ===' % (impl, version, label, which_python)) sys.stdout.flush() |