def plugin_start(): """ Start our plugin, add this dir to the search path so others can use our module :return: """ ensure_service() try: client.send_message("edmcintro", trace("EDMC Ready"), "yellow", 30, 165, ttl=6) except Exception as err: print("Error sending message in plugin_start() : {}".format(err)) return "EDMCOverlay"
def plugin_start(): """ Start our plugin, add this dir to the search path so others can use our module :return: """ ensure_service() try: client.send_message("edmcintro", trace("EDMC Ready"), "yellow", 30, 165, ttl=6) notify_old_hits() except Exception: pass return "EDMCOverlay"
def notify_old_hits(): """ If an old copy of HITS is installed, notify the user :return: """ if notify_old_hits.done: return notify_old_hits.done = True hits_overlay_dist = os.path.join(PLUGDIR, "HITS", "EDMCOverlay", "EDMCOverlay.exe") if os.path.exists(hits_overlay_dist): client.send_message( "warning", trace( "An older version of the HITS plugin is installed, please update it" ), "#ffcc00", 30, 30, ttl=10)