(self)
Prepare our attributes
Prepare our attributes
Prepare our attributes
def prepare_attributes(self):
        """Prepare our attributes"""
        if not self.instances:
            self.instances = {}
        if not self.path:
            self.path = []
            (head, _tail) = os.path.split(borg.__file__)
            self.path.append(os.path.join(head, 'plugins'))
            self.path.append(os.path.join(get_config_dir(), 'plugins'))
            dbg('PluginRegistry::prepare_attributes: Plugin path: %s' % 
                self.path)
        if not self.done:
            self.done = False
        if not self.available_plugins:
            self.available_plugins = {}
def prepare_attributes ( self ) : if not self . instances : self . instances = { } if not self . path : self . path = [ ] ( head , _tail ) = os . path . split ( borg . __file__ ) self . path . append ( os . path . join ( head , 'plugins' ) ) self . path . append ( os . path . join ( get_config_dir ( ) , 'plugins' ) ) dbg ( 'PluginRegistry::prepare_attributes: Plugin path: %s' % self . path ) if not self . done : self . done = False if not self . available_plugins : self . available_plugins = { }