GUI.py 文件源码

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

项目:bemoss_gui2.1 作者: bemoss 项目源码 文件源码
def detect_bemoss(self):
        cwd = os.getcwd()
        ui_path = cwd.replace('bemoss_gui','bemoss_web_ui')
        cassandra_path = cwd.replace('bemoss_gui','cassandra')
        env_path = cwd.replace('bemoss_gui','bemoss_os/env/bin')
        bemoss_is_installed = os.path.isdir(ui_path) and os.path.isdir(cassandra_path) and os.path.isdir(env_path)

        if bemoss_is_installed is False:
            tmp = tkMessageBox.askokcancel(title='Please install BEMOSS at first',
                                           message='You computer does not have BEMOSS installed, do you want to install BEMOSS right now?',
                                           parent=root)
            if tmp is True:
                self.install_bemoss()
                return
            else:
                return False
        else:
            return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号