summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/scripts/Python/buildSwigPython.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/scripts/Python/buildSwigPython.py b/lldb/scripts/Python/buildSwigPython.py
index 8cc3b771988..15129dc1165 100644
--- a/lldb/scripts/Python/buildSwigPython.py
+++ b/lldb/scripts/Python/buildSwigPython.py
@@ -26,6 +26,7 @@
# Python modules:
import os # Provide directory and file handling, determine OS information
+import sys # sys.executable
import time # Time access and conversions
import subprocess # Call external programs
import shutil # File handling
@@ -533,7 +534,7 @@ def run_python_script( vDictArgs, vstrArgs ):
strMsg = "";
bDbg = vDictArgs.has_key( "-d" );
- strPy = "python %s" % vstrArgs;
+ strPy = "%s %s" % (sys.executable, vstrArgs);
process = subprocess.Popen( strPy, shell=True );
strStdOut, strStdErr = process.communicate();
nResult = process.returncode;
OpenPOWER on IntegriCloud