]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/vstart_runner.py: use current python executable
authorKefu Chai <kchai@redhat.com>
Fri, 20 Dec 2019 13:39:48 +0000 (21:39 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Dec 2019 13:39:49 +0000 (21:39 +0800)
python3 is not always the path to executable used by current python
session.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/vstart_runner.py

index dfb67908c5f00859a28d3a30714896af06817413..e95d27dbafc28b24aa46c1c000d99f959653cdbf 100644 (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]: