meson: find python3 via python3 module
authorTim-Philipp Müller <tim@centricular.com>
Fri, 7 Jul 2017 10:59:41 +0000 (11:59 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 7 Jul 2017 10:59:41 +0000 (11:59 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=783198

meson.build

index 32cc028..dfb23d1 100644 (file)
@@ -119,5 +119,5 @@ configinc = include_directories('.')
 plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
 subdir('ext/libav/')
 
-python3 = find_program('python3')
+python3 = import('python3').find_python()
 run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')