wiz.spawn¶
-
wiz.spawn.shell(environment, command=None)[source]¶ Spawn a sub-shell with an environment mapping.
Parameters: - environment – Environment mapping to spawn the shell with.
- command – Mapping of command aliases which should be available in the shell.
Note
Default shell is Bash.
-
wiz.spawn.execute(elements, environment)[source]¶ Run command elements within a specific environment.
Parameters: - elements – List of strings constituting the command line to execute (e.g. [“app_exe”, “–option”, “value”])
- environment – Environment mapping to execute command with.
Returns: returncodeattribute.