diff options
author | Rodrigue Cloutier <rodrigue.cloutier@ubisoft.com> | 2015-12-10 10:22:06 -0500 |
---|---|---|
committer | Rodrigue Cloutier <rodrigue.cloutier@ubisoft.com> | 2015-12-10 10:22:06 -0500 |
commit | c411cc843c6cb70620b16cbaf12a5a0610f27f21 (patch) | |
tree | 62abcc7cbbec5df27c1cd60741b4c269e1fcf8ee /igor.py | |
parent | 667b52845a87a4a8c1c5bec59f0366de3c896bf9 (diff) | |
download | python-coveragepy-git-c411cc843c6cb70620b16cbaf12a5a0610f27f21.tar.gz |
Fix Windows support for multiprocessing monkey patch
--HG--
branch : windows_multiprocessing_support
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() |