def show_contextual_menu(self): loader = SublimErlProjectLoader(self.view) index_path = os.path.abspath(os.path.join(loader.project_root, 'logs', 'index.html')) print index_path return os.path.exists(index_path)
def run_command(self, edit): # open CT results loader = SublimErlProjectLoader(self.view) index_path = os.path.abspath(os.path.join(loader.project_root, 'logs', 'index.html')) if os.path.exists(index_path): webbrowser.open(index_path)