summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/add_external-program_cmd-array.md
blob: f4d7a6c0eed4009b3c63b1addf3bc0a000fb9e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
## 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.