def invoke(self,plugin_path): #plugin_path = "D:\\Dropbox\\Scripting\\PyQt\\console-player\\src\\user\\plugins\\" PyBASS.bass_init(); # get all dlls in the plugins folder and attempt to load them for plugin in [ p for p in os.listdir(plugin_path) if fileGetExt(p).lower()=='dll' ]: path = os.path.join(plugin_path,plugin); val = PyBASS.load_plugin(path); print "Loading Plugin: %s %s"%(plugin,val==0)
def invoke(self, plugin_path): #plugin_path = "D:\\Dropbox\\Scripting\\PyQt\\console-player\\src\\user\\plugins\\" PyBASS.bass_init() # get all dlls in the plugins folder and attempt to load them for plugin in [ p for p in os.listdir(plugin_path) if fileGetExt(p).lower() == 'dll' ]: path = os.path.join(plugin_path, plugin) val = PyBASS.load_plugin(path) print "Loading Plugin: %s %s" % (plugin, val == 0)