subprocess#

Helpler functions for subprocess.

Functions#

_format_output(command_str, cwd, rc, stdout, stderr)

any_subprocess(args, prefix[, env, cwd])

subprocess_call(command[, env, path, stdin, ...])

This utility function should be preferred for all conda subprocessing.

_subprocess_clean_env(env[, clean_python, clean_conda])

subprocess_call_with_clean_env(command[, path, stdin, ...])

Attributes#

Response#
_format_output(command_str, cwd, rc, stdout, stderr)#
any_subprocess(args, prefix, env=None, cwd=None)#
subprocess_call(command: str | os.PathLike | pathlib.Path | collections.abc.Sequence[str | os.PathLike | pathlib.Path], env: dict[str, str] | None = None, path: str | os.PathLike | pathlib.Path | None = None, stdin: str | None = None, raise_on_error: bool = True, capture_output: bool = True)#

This utility function should be preferred for all conda subprocessing. It handles multiple tricky details.

_subprocess_clean_env(env, clean_python=True, clean_conda=True)#
subprocess_call_with_clean_env(command, path=None, stdin=None, raise_on_error=True, clean_python=True, clean_conda=True)#