Skip to content

Commit 415c9e1

Browse files
fanc999-1jpakkane
authored andcommitted
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.
1 parent c53b637 commit 415c9e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mesonbuild/scripts/gtkdochelper.py

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def gtkdoc_run_check(cmd, cwd, library_paths=None):
5959
if 'PATH' in env:
6060
library_paths.extend(env['PATH'].split(os.pathsep))
6161
env['PATH'] = os.pathsep.join(library_paths)
62+
cmd.insert(0, sys.executable)
6263
else:
6364
if 'LD_LIBRARY_PATH' in env:
6465
library_paths.extend(env['LD_LIBRARY_PATH'].split(os.pathsep))

0 commit comments

Comments
 (0)