application.py 文件源码

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

项目:testindicator 作者: logileifs 项目源码 文件源码
def main():
    if len(sys.argv) < 2:
        watch_dir = zenipy.file_selection(
            multiple=False,
            directory=True,
            save=False,
            confirm_overwrite=False,
            filename=None,
            title='Choose a directory to watch',
            width=20,
            height=20,
            timeout=None
        )
    else:
        watch_dir = os.path.abspath(sys.argv[1])
    if not watch_dir:
        raise SystemExit('No watch directory selected - exiting')
    cfg.set_watch_dir(watch_dir)
    cfg.read()
    app = Application()
    app.run()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号