Windows: fix Python path cannot contain spaces

Move the shebang line from the full Python path of the build
machine to the first Python on the path during runtime. Set
the shebang in the main meson.build file so that it can be
overridden in one place if needed.

Fixes: #3331
This commit is contained in:
Dan Yeaw
2024-11-09 17:05:17 -05:00
committed by Philip Withnall
parent 0234f8e1b1
commit 160e55575e
4 changed files with 9 additions and 3 deletions

View File

@@ -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', python_shebang)
gdbus_codegen_conf.set('DATADIR', glib_datadir)
# Install gdbus-codegen executable