From c411cc843c6cb70620b16cbaf12a5a0610f27f21 Mon Sep 17 00:00:00 2001 From: Rodrigue Cloutier Date: Thu, 10 Dec 2015 10:22:06 -0500 Subject: Fix Windows support for multiprocessing monkey patch --HG-- branch : windows_multiprocessing_support --- igor.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'igor.py') diff --git a/igor.py b/igor.py index 409fdc91..b857fcc3 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() -- cgit v1.2.1