cryptop.py 文件源码

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

项目:cryptop 作者: huwwp 项目源码 文件源码
def main():
    if os.path.isfile(BASEDIR):
        sys.exit('Please remove your old configuration file at {}'.format(BASEDIR))
    os.makedirs(BASEDIR, exist_ok=True)

    global CONFIG
    CONFIG = read_configuration(CONFFILE)
    locale.setlocale(locale.LC_MONETARY, CONFIG['locale'].get('monetary', ''))

    requests_cache.install_cache(cache_name='api_cache', backend='memory',
        expire_after=int(CONFIG['api'].get('cache', 10)))

    curses.wrapper(mainc)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号