aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-04-17 16:11:42 +0800
committerJussi Pakkanen <jpakkane@gmail.com>2020-04-21 00:17:36 +0300
commit415c9e14e7079ca6db7a46a67ed947c5da914f60 (patch)
tree3af9c9cf8be4d41d7a83b7692c423484d828ca67 /mesonbuild
parentc53b6379597be5961b4e69e7f187608452874e4c (diff)
downloadmeson-415c9e14e7079ca6db7a46a67ed947c5da914f60.zip
meson-415c9e14e7079ca6db7a46a67ed947c5da914f60.tar.gz
meson-415c9e14e7079ca6db7a46a67ed947c5da914f60.tar.bz2
gtkdochelper.py: Support Windows cmd.exe consoles
On Windows, prepend the commands to call the gtk-doc scripts using the currently-used Python executable, since Windows cmd.exe consoles do not support shebang lines.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/scripts/gtkdochelper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/scripts/gtkdochelper.py b/mesonbuild/scripts/gtkdochelper.py
index ddcc8c0..36660ef 100644
--- a/mesonbuild/scripts/gtkdochelper.py
+++ b/mesonbuild/scripts/gtkdochelper.py
@@ -59,6 +59,7 @@ def gtkdoc_run_check(cmd, cwd, library_paths=None):
if 'PATH' in env:
library_paths.extend(env['PATH'].split(os.pathsep))
env['PATH'] = os.pathsep.join(library_paths)
+ cmd.insert(0, sys.executable)
else:
if 'LD_LIBRARY_PATH' in env:
library_paths.extend(env['LD_LIBRARY_PATH'].split(os.pathsep))