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.
pull/7002/head
Chun-wei Fan 5 years ago committed by Jussi Pakkanen
parent c53b637959
commit 415c9e14e7
  1. 1
      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))

Loading…
Cancel
Save