diff --git a/gio/gdbus-2.0/codegen/meson.build b/gio/gdbus-2.0/codegen/meson.build index 67ea9f2ee..a196ea1da 100644 --- a/gio/gdbus-2.0/codegen/meson.build +++ b/gio/gdbus-2.0/codegen/meson.build @@ -31,7 +31,7 @@ gdbus_codegen_conf = configuration_data() gdbus_codegen_conf.set('VERSION', glib_version) gdbus_codegen_conf.set('MAJOR_VERSION', major_version) gdbus_codegen_conf.set('MINOR_VERSION', minor_version) -gdbus_codegen_conf.set('PYTHON', python.full_path()) +gdbus_codegen_conf.set('PYTHON', host_system != 'windows' ? python.full_path() : 'python3') gdbus_codegen_conf.set('DATADIR', glib_datadir) # Install gdbus-codegen executable diff --git a/glib/meson.build b/glib/meson.build index 5fd77590a..aaa4948d6 100644 --- a/glib/meson.build +++ b/glib/meson.build @@ -501,7 +501,7 @@ endif report_conf = configuration_data() report_conf.set('GLIB_VERSION', glib_version) -report_conf.set('PYTHON', python.full_path()) +report_conf.set('PYTHON', host_system != 'windows' ? python.full_path() : 'python3') configure_file( input: 'gtester-report.in', output: 'gtester-report', diff --git a/gobject/meson.build b/gobject/meson.build index 748f72bc1..8e9647d94 100644 --- a/gobject/meson.build +++ b/gobject/meson.build @@ -85,7 +85,7 @@ python_tools = [ python_tools_conf = configuration_data() python_tools_conf.set('VERSION', glib_version) -python_tools_conf.set('PYTHON', python.full_path()) +python_tools_conf.set('PYTHON', host_system != 'windows' ? python.full_path() : 'python3') foreach tool: python_tools tool_bin = configure_file(