subprocess#
subprocess 的辅助函数。
函数#
|
|
|
|
|
此实用程序函数应为所有 conda 子进程的首选。 |
|
|
|
属性#
- 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)#
此实用程序函数应为所有 conda 子进程的首选。它处理多个棘手的细节。
- _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)#