mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
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:
parent
e075fd91aa
commit
130e3eddb9
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user