def _getpluginnames(ptype): if sys.platform[:4] == "cli": plugins = ob.VectorString() else: plugins = ob.vectorString() ob.OBPlugin.ListAsVector(ptype, None, plugins) if sys.platform[:4] == "java": plugins = [plugins.get(i) for i in range(plugins.size())] return [x.split()[0] for x in plugins]
def _getpluginnames(ptype): if sys.platform[:4] == "cli": plugins = ob.VectorString() else: plugins = ob.vectorString() ob.OBPlugin.ListAsVector(ptype, None, plugins) if sys.platform[:4] == "java": plugins = [plugins.get(i) for i in range(plugins.size())] return [x.split()[0] for x in plugins if x.strip()]