def load(self): "Plugin load" GespeakerPlugin.load(self) plugin_path = join(xdg_home, '.amsn', 'plugins') plugin_filename = join(plugin_path, 'Gespeaker') # if exists(plugin_path) and isdir(plugin_path): if exists(plugin_filename): if islink(plugin_filename): # Remove previous gespeaker symlink os.remove(plugin_filename) else: self.logger('WARNING: %s already exists' % plugin_filename) if not exists(plugin_filename): # Symlink plugin os.symlink(__path__[0], plugin_filename)
def load(self): "Plugin load" GespeakerPlugin.load(self) # Warning! Emesene 1.6 uses absolute .config folder, not xdg config home self.plugins_path = os.path.join( xdg_config_home, 'emesene1.0', 'pluginsEmesene') self.plugin_filename = join(self.plugins_path, EMESENE_PLUGIN_FILENAME) if exists(self.plugins_path) and isdir(self.plugins_path): if exists(self.plugin_filename) or islink(self.plugin_filename): # Remove previous .py file os.remove(self.plugin_filename) if exists('%sc' % self.plugin_filename): # Remove previous .pyc file os.remove('%sc' % self.plugin_filename) # Symlink emesene os.symlink( join(__path__[0], EMESENE_PLUGIN_FILENAME), join(self.plugins_path, EMESENE_PLUGIN_FILENAME) )
def load(self): "Plugin load" GespeakerPlugin.load(self) self.logger('load()')
def load(self): "Plugin load" GespeakerPlugin.load(self) dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
def load(self): "Plugin load" GespeakerPlugin.load(self) dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
def load(self): "Plugin load" GespeakerPlugin.load(self) self.logger('load()')