exec Command Arguments¶
All the options that follow
are related to the exec command
(see also Exec Command Reference).
If you change the target command,
these options can no longer be relied on
(see Target Command Arguments for details).
cmdRequired if
shell_cmdis empty.Overriden by
shell_cmd.Array containing the command to run and its desired arguments. If you don’t specify an absolute path, the external program will be searched in your
PATH. Ultimately,subprocess.Popen(cmd)is called.On Windows, GUIs are supressed.
shell_cmdRequired if
cmdis empty.Overrides
cmdif used.A string that specifies the command to be run and its arguments. Ultimately,
subprocess.Popen(shell_cmd, shell=True)is called.It should help in getting right invocations involving complex uses of quotation marks.
working_dirOptional.
Directory to change the current directory to before running
cmd. The original current directory is restored afterwards.encodingOptional.
Output encoding of
cmd. Must be a valid Python encoding. Defaults toUTF-8.envOptional.
Dictionary of environment variables to be merged with the current process’ before passing them to
cmd.Use this option, for example, to add or modify environment variables without modifying your system’s settings.
Environmental variables will be expanded.
shellOptional.
If true,
cmdwill be run through the shell (cmd.exe,bash…).If
shell_cmdis used, this option has no effect.pathOptional.
PATHused by thecmdsubprocess.Use this option to add directories to
PATHwithout having to modify your system’s settings.Environmental variables will be expandend.
file_regexOptional.
Sets the
result_file_regexfor the results view.See Capturing Build System Results for details.
line_regexOptional.
Sets the
result_line_regexfor the results view.See Capturing Build System Results for details.
syntaxOptional.
If provided, it will be used to colorize the build system’s output.