diff mbox

[KVM-AUTOTEST,10/14] KVM test: kvm_subprocess.py: use sys.executable instead of hardcoded 'python'

Message ID 1276439625-32472-10-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish June 13, 2010, 2:33 p.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_subprocess.py b/client/tests/kvm/kvm_subprocess.py
index 9222d33..2d70146 100755
--- a/client/tests/kvm/kvm_subprocess.py
+++ b/client/tests/kvm/kvm_subprocess.py
@@ -337,7 +337,7 @@  class kvm_spawn:
 
         # Start the server (which runs the command)
         if command:
-            sub = subprocess.Popen("python %s" % __file__,
+            sub = subprocess.Popen("%s %s" % (sys.executable, __file__),
                                    shell=True,
                                    stdin=subprocess.PIPE,
                                    stdout=subprocess.PIPE,