summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/meson.build b/tools/meson.build
index aaf4bc84..ea8ccc3a 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -9,12 +9,13 @@ if get_option('doctool')
tools += [['g-ir-doc-tool', 'docmain', 'doc_main']]
endif
+python_name = 'python@0@'.format(python.language_version().split('.')[0])
tool_output = []
foreach tool : tools
tools_conf = configuration_data()
tools_conf.set('libdir', libdir_abs)
tools_conf.set('datarootdir', datadir_abs)
- tools_conf.set('PYTHON', 'python' + python.language_version())
+ tools_conf.set('PYTHON', python_name)
tools_conf.set('TOOL_MODULE', tool[1])
tools_conf.set('TOOL_FUNCTION', tool[2])