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
评论列表
文章目录