def __init__(self, directories=None, pythonpath_return_value='pythonpath', directory_mapping=None):
     self._pythonpath_return_value = pythonpath_return_value
     if directory_mapping is None:
         directory_mapping = {LIBRARY_XML_DIRECTORY:'directory'}
     self._directory_mapping = directory_mapping
     self.initialized_from_pythonpath = False
     self.initialized_from_xml_directory = False
     SpecInitializer.__init__(self, directories)
Ejemplo n.º 2
0
 def __init__(self, database_name, spec_initializer=None):
     self._database_name = database_name
     self._database = None
     self._messages = Queue.Queue()
     self._spec_initializer = spec_initializer or SpecInitializer()
     Thread.__init__(self)
     self.setDaemon(True)
Ejemplo n.º 3
0
 def _construct_library_manager(self, library_manager, settings):
     return library_manager or \
         LibraryManager(DATABASE_FILE,
             SpecInitializer(settings.get('library xml directories', [])[:]))
Ejemplo n.º 4
0
 def _spec(self, name):
     return SpecInitializer().init_from_spec(name)