def __init__(self, argv=None): DictType.clear(self) # first of all we load default CANVAS config (at the top of that file) for line in self.__default_config.split('\n'): self.__parse_configline(line, 'Config::DefaultConf') # then we parse user's config file self.load_configfile() # and at the end we overwrite config with cmdline options self.parse_argv()