respond.py 文件源码

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

项目:qtools 作者: ssorj 项目源码 文件源码
def init(self):
        super(RespondCommand, self).init()

        self.init_link_attributes()

        if self.args.config is not None:
            config_file = self.args.config

            if config_file == "-":
                config_file = "/dev/stdin"

            try:
                config = _runpy.run_path(config_file)
            except:
                self.fail("Failed to load config from '{0}'", config_file)

            try:
                self.process = config["process"]
            except KeyError:
                self.fail("Function 'process' not found in '{0}'", config_file)

        self.desired_messages = self.args.count
        self.upper = self.args.upper
        self.reverse = self.args.reverse
        self.append = self.args.append
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号