From 464eb29704de9126d48d9e3b40132fe4905abe4c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 24 May 2017 20:52:57 +0200 Subject: [PATCH] Set PATH in build_release.py when calling tox On Windows, we need to have the proper Python folder in PATH when using PyQt5, so it can load python3.dll properly. --- scripts/dev/build_release.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 7c1f77a1d..073b9a58e 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -62,6 +62,7 @@ def call_tox(toxenv, *args, python=sys.executable): """ env = os.environ.copy() env['PYTHON'] = python + env['PATH'] = os.environ['PATH'] + os.pathsep + os.path.dirname(python) subprocess.check_call( [sys.executable, '-m', 'tox', '-v', '-e', toxenv] + list(args), env=env)