main.py 文件源码

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

项目:pyTrack 作者: clamytoe 项目源码 文件源码
def main():
    """Displays all projects

    If command line arguments are used, they are passed on to click to process,
    if not, then all of the projects currently being worked on are displayed.
    """
    try:
        db.connect()
    except OperationalError:
        pass

    try:
        db.create_tables([Log, Project], True)
    except OperationalError:
        pass
    else:
        if len(argv) > 1:
            cli()
        else:
            _ = get_projects(display=True)
    finally:
        db.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号