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()
评论列表
文章目录