cli.py 文件源码

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

项目:buttervolume 作者: anybox 项目源码 文件源码
def run(args):
    if not os.path.exists(SNAPSHOTS_PATH):
        log.info('Creating %s', SNAPSHOTS_PATH)
        os.makedirs(SNAPSHOTS_PATH, exist_ok=True)
    # run a thread for the scheduled snapshots
    print('Starting scheduler job every {}s'.format(TIMER))
    Timer(1, scheduler).start()
    # listen to requests
    serve(app, unix_socket=SOCKET, unix_socket_perms='660')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号