qa/tasks/vstart_runner.py: use current python executable

python3 is not always the path to executable used by current python
session.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-12-20 21:39:48 +08:00
parent e075fd91aa
commit 130e3eddb9

View File

@ -80,7 +80,7 @@ def respawn_in_path(lib_path, python_paths):
else:
lib_path_var = "LD_LIBRARY_PATH"
py_binary = os.environ.get("PYTHON", "python3")
py_binary = os.environ.get("PYTHON", sys.executable)
if lib_path_var in os.environ:
if lib_path not in os.environ[lib_path_var]: