formelsammlung.env_exe_runner module¶
-
formelsammlung.env_exe_runner.
env_exe_runner
(runner, envs, tool, tool_args=None)[source]¶ Call given
tool
from giventox
ornox
env considering OS.- Parameters
- Return type
- Returns
Exit code 127 if no executable is found or the exit code of the called cmd.
-
formelsammlung.env_exe_runner.
cli_caller
()[source]¶ Warp
env_exe_runner
to be callable by cli.Script to call executables in tox/nox envs considering OS.
The script takes two mandatory arguments:
The runner managing the env: tox or nox.
A string with comma separated tox/nox envs to check for the executable. The envs are checked in given order.
The executable to call like e.g. pylint.
All other arguments after are passed to the tool on call.
- Return type
- Returns
Exit code from
env_exe_runner