summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorRodrigue Cloutier <rodrigue.cloutier@ubisoft.com>2015-12-10 10:22:06 -0500
committerRodrigue Cloutier <rodrigue.cloutier@ubisoft.com>2015-12-10 10:22:06 -0500
commitedf6154e98b6b59a7f30898bc99e19b1bb2ce87d (patch)
tree5acb0ce2f9408e7f7a827d5aa4d63335515b80a3 /igor.py
parentcbab3c1f7905538b51dd901453ea86f8b2fcff4a (diff)
downloadpython-coveragepy-edf6154e98b6b59a7f30898bc99e19b1bb2ce87d.tar.gz
Fix Windows support for multiprocessing monkey patch
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/igor.py b/igor.py
index 409fdc9..b857fcc 100644
--- a/igor.py
+++ b/igor.py
@@ -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()