startup.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:telepresence 作者: datawire 项目源码 文件源码
def require_command(
    runner: Runner, command: str, message: Optional[str] = None
):
    if message is None:
        message = "Please install " + command
    try:
        runner.get_output(["which", command])
    except CalledProcessError as e:
        sys.stderr.write(message + "\n")
        sys.stderr.write(
            '(Ran "which {}" to check in your $PATH.)\n'.format(command)
        )
        sys.stderr.write(
            "See the documentation at https://telepresence.io "
            "for more details.\n"
        )
        raise SystemExit(1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号