From fb1f0b969462835a831aea881c59983770e4c6e7 Mon Sep 17 00:00:00 2001 From: Niklas Claesson Date: Thu, 28 Jun 2018 23:17:27 +0200 Subject: Fix type-bug cannot add str to list --- run_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'run_tests.py') diff --git a/run_tests.py b/run_tests.py index 8ecef30..7bb601a 100755 --- a/run_tests.py +++ b/run_tests.py @@ -284,7 +284,10 @@ def main(): 'import coverage\n' 'coverage.process_startup()\n') env['COVERAGE_PROCESS_START'] = '.coveragerc' - env['PYTHONPATH'] = os.pathsep.join([temp_dir] + env.get('PYTHONPATH', [])) + if 'PYTHONPATH' in env: + env['PYTHONPATH'] = os.pathsep.join([temp_dir, env.get('PYTHONPATH')]) + else: + env['PYTHONPATH'] = temp_dir if not cross: cmd = mesonlib.python_command + ['run_meson_command_tests.py', '-v'] if options.failfast: -- cgit v1.1