Esempio n. 1
0
def getPluginPath(name):

    plugin = xsi.Plugins(name)
    if plugin:
        return plugin.OriginPath
    else:
        return False
Esempio n. 2
0
def getPluginFullPath(name):

    plugin = xsi.Plugins(name)
    if plugin:
        return plugin.FileName
    else:
        return False
Esempio n. 3
0
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