diff --git a/meson.build b/meson.build index 29ecebcec..6e924f36c 100644 --- a/meson.build +++ b/meson.build @@ -15,9 +15,12 @@ if get_option('prepare') subdir_done() endif +python = import('python') +python3_prog = python.find_installation('python3') + fs = import('fs') to_array = generator( - find_program('python'), + python3_prog, output: [ '@PLAINNAME@.cpp', '@PLAINNAME@.h' ], arguments: [ join_paths(meson.current_source_dir(), 'resources/to-array.py'), '@OUTPUT0@', '@OUTPUT1@', '@INPUT@', '@EXTRA_ARGS@' ] ) diff --git a/resources/meson.build b/resources/meson.build index e2dd8e2be..95248123a 100644 --- a/resources/meson.build +++ b/resources/meson.build @@ -49,7 +49,7 @@ if host_platform == 'windows' } foreach key, icons : win_icos command = [ - find_program('python'), + python3_prog, join_paths(meson.current_source_dir(), 'make-ico.py'), '@OUTPUT@', ]