meson: use python3 module to find python3
authorDylan Baker <dylan@pnwbakers.com>
Tue, 14 Aug 2018 16:33:07 +0000 (09:33 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 16 Aug 2018 20:51:44 +0000 (13:51 -0700)
This handy helper is nice for OSes that are not linux or BSD like (mac
and windows) as it knows how to find python3 in odd places.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
meson.build

index c9ef70346a157452231f4aa0521ae31a9d3d98ce..351c0785aff26f2dc6335a117ac546577cb2a11c 100644 (file)
@@ -697,7 +697,7 @@ if with_platform_haiku
   pre_args += '-DHAVE_HAIKU_PLATFORM'
 endif
 
-prog_python = find_program('python3')
+prog_python = import('python3').find_python()
 has_mako = run_command(
   prog_python, '-c',
   '''