예제 #1
0
파일: manager.py 프로젝트: GNOME/wiican
    def __init__(self):
        """Gets the single mapping manager instance"""
        
        Singleton.__init__(self)
        GConfStore.__init__(self, GCONF_KEY)

        self.home_path = MAPPINGS_HOME_DIR
        self.system_paths = MAPPINGS_BASE_DIR

        if not type(self.system_paths) is list:
            self.system_paths = [self.system_paths]

        self.__mapping_bag = {}
        self.loadconf(only_defaults=True)
        self.options['mapping_visible'] = set(self.options['mapping_visible'])
예제 #2
0
파일: __init__.py 프로젝트: GNOME/wiican
 def __init__(self):
     Singleton.__init__(self)
     GConfStore.__init__(self, GCONF_KEY)