MCPcopy Create free account
hub / github.com/BrightXiaoHan/CMakeTutorial / execute_command

Function execute_command

PythonExtention/setup.py:12–41  ·  view source on GitHub ↗

执行一个SHELL命令封装了subprocess的Popen方法, 支持超时判断,支持读取stdout和stderr Arguments: cmdstring {[type]} -- 命令字符创 Keyword Arguments: cwd {str} -- 运行命令时更改路径,如果被设定,子进程会直接先更改当前路径到cwd (default: {None}) timeout {str} -- 超时时间,秒,支持小数,精度0.1秒 (default: {None}) shell {bool} -- 是否通过sh

(cmdstring, cwd=None, timeout=None, shell=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

build_libraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected