From 3a4388e51dee5e7e58f1e5ad4e60fb73b4aacf08 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 2 Aug 2019 14:29:40 -0400 Subject: Fix legacy env var support with cross Fix #3969 --- mesonbuild/modules/python3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/python3.py') diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index 46f15f04e..97bd5ecc4 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -48,7 +48,7 @@ class Python3Module(ExtensionModule): @noKwargs def find_python(self, state, args, kwargs): - command = state.environment.binaries.host.lookup_entry('python3') + command = state.environment.lookup_binary_entry(mesonlib.MachineChoice.HOST, 'python3') if command is not None: py3 = dependencies.ExternalProgram.from_entry('python3', command) else: -- cgit v1.2.3