main.py 文件源码

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

项目:slack-status-bar 作者: ericwb 项目源码 文件源码
def main():
    # Read the configuration file
    config_file = os.path.join(rumps.application_support(APP_TITLE),
                               'config.yaml')
    with open(config_file, 'r') as conf:
        try:
            config = yaml.safe_load(conf)
        except yaml.YAMLError as exc:
            print(exc)
            return

    # Setup our CTRL+C signal handler
    signal.signal(signal.SIGINT, _signal_handler)

    # Enable debug mode
    rumps.debug_mode(config['debug'])

    # Startup application
    SlackStatusBarApp(config).run()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号