Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
     )
Ejemplo n.º 3
0
 def load(self):
     "Plugin load"
     GespeakerPlugin.load(self)
     self.logger('load()')
Ejemplo n.º 4
0
 def load(self):
   "Plugin load"
   GespeakerPlugin.load(self)
   dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
Ejemplo n.º 5
0
 def load(self):
     "Plugin load"
     GespeakerPlugin.load(self)
     dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
Ejemplo n.º 6
0
 def load(self):
   "Plugin load"
   GespeakerPlugin.load(self)
   self.logger('load()')