From 415c9e14e7079ca6db7a46a67ed947c5da914f60 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 17 Apr 2020 16:11:42 +0800 Subject: 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. --- mesonbuild/scripts/gtkdochelper.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mesonbuild/scripts') diff --git a/mesonbuild/scripts/gtkdochelper.py b/mesonbuild/scripts/gtkdochelper.py index ddcc8c0bc..36660effa 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)) -- cgit v1.3