__init__.py 文件源码

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

项目:pypki2 作者: nbgallery 项目源码 文件源码
def ipython_config(self):
        temp_config = _Configuration(self.config_path)
        if temp_config.has('p12') and 'path' in temp_config.get('p12'):
            pass
        else:
            if _in_ipython:
                from IPython.display import display, Javascript
                display(Javascript("MyPKI.init({'no_verify':true, configure:true});"))
                print('Configuring .mypki via JavaScript .p12 dialog...')
                while True:
                    temp_config = _Configuration(self.config_path)
                    if temp_config.has('p12') and 'path' in temp_config.get('p12'):
                        break
                    else:
                        sleep(2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号