From: Kefu Chai Date: Fri, 20 Dec 2019 13:39:48 +0000 (+0800) Subject: qa/tasks/vstart_runner.py: use current python executable X-Git-Tag: v15.1.0~420^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=130e3eddb942e98a28b1b6da6cfbff214b4f33ee;p=ceph.git 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 --- diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index dfb67908c5f0..e95d27dbafc2 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -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]: