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

meson.build

index 25d67601f73ed9e6eaf6aea8e044edcb88e20aff..62c64203d1263d83b163478a4e8caee03f7aa721 100644 (file)
@@ -277,5 +277,5 @@ endif
 # Use core_conf after all subdirs have set values
 configure_file(output : 'config.h', configuration : core_conf)
 
-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")')