def getPluginPath(name): plugin = xsi.Plugins(name) if plugin: return plugin.OriginPath else: return False
def getPluginFullPath(name): plugin = xsi.Plugins(name) if plugin: return plugin.FileName else: return False
def pluginExists(names, all=True): if isinstance(names, str): names = [names] exists = True for name in names: plugin = xsi.Plugins(name) if plugin: if not all: return True else: if all: return False else: exists = False return exists