aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python3.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-10-15 21:48:03 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-20 23:08:17 +0200
commit9d67e5030b6c86ce33f43ae7a5b827f299d68a3e (patch)
treeff5f539482b51c48a8d8b4b90cf2ba93c2909157 /mesonbuild/modules/python3.py
parenta437cd1955186060a8c5768fef739830d2711d0c (diff)
downloadmeson-9d67e5030b6c86ce33f43ae7a5b827f299d68a3e.zip
meson-9d67e5030b6c86ce33f43ae7a5b827f299d68a3e.tar.gz
meson-9d67e5030b6c86ce33f43ae7a5b827f299d68a3e.tar.bz2
Changed code to use detected executables rather than hardcoding sys.executable.
Diffstat (limited to 'mesonbuild/modules/python3.py')
-rw-r--r--mesonbuild/modules/python3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py
index 4fae88b..989e839 100644
--- a/mesonbuild/modules/python3.py
+++ b/mesonbuild/modules/python3.py
@@ -52,7 +52,7 @@ class Python3Module(ExtensionModule):
@noKwargs
def find_python(self, state, args, kwargs):
- py3 = dependencies.ExternalProgram('python3', sys.executable, silent=True)
+ py3 = dependencies.ExternalProgram('python3', mesonlib.python_command, silent=True)
return ModuleReturnValue(py3, [py3])
@noKwargs