Files
meson/docs/markdown/snippets/add_external-program_cmd-array.md
Stéphane Cerveau 2e0e2663b8 ExternalProgram: add cmd_array to complete the offfering
In case of python and especially in the case of pyInstaller
where the python command is meson.exe runpython, it should
not be full path to be used but cmd_array.

Fixing #13834
2025-11-05 08:12:46 -05:00

587 B

Add cmd_array method to ExternalProgram

Added a new cmd_array() method to the ExternalProgram object that returns an array containing the command(s) for the program. This is particularly useful in cases like pyInstaller where the Python command is meson.exe runpython, and the full path should not be used but rather the command array.

The method returns a list of strings representing the complete command needed to execute the external program, which may differ from just the full path returned by full_path() in cases where wrapper commands or interpreters are involved.