boxPrint.py 文件源码

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

项目:Mohou_Box-master 作者: mohou 项目源码 文件源码
def __init__(self):
        signal.signal(signal.SIGINT, self.intercept_signal)
        signal.signal(signal.SIGTERM, self.intercept_signal)

        self.logger = logging.getLogger(__name__)
        define("port", default=5000, help="run on the given port", type=int)
        define("host", default="0.0.0.0", help="run on the given host", type=str)
        self.config_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "boxPrint.conf")
        tornado.options.parse_config_file(self.config_file)

        self.host = options.host
        self.port = options.port
        self.app =  App()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号