Beispiel #1
0
    def __update_config(self):
        for section in ['SNAP', 'OUTPUT', 'URL']:
            if section not in ConfigHandler.sections:
                # print('creating section {}..'.format(section))
                ConfigHandler.add_section(section)

        for key in self.identifiers + ['auxdatapath', 'properties']:
            if hasattr(self, key):
                self.__update_config_attr(key, getattr(self, key), 'SNAP')

        for key, value in self.snap_properties.items():
            self.__update_config_attr(key, value, 'OUTPUT')
Beispiel #2
0
    def __update_config(self):
        if 'GAMMA' not in ConfigHandler.sections:
            ConfigHandler.add_section('GAMMA')

        for attr in ['home', 'version']:
            self.__update_config_attr(attr, getattr(self, attr), 'GAMMA')