Lines Matching refs:config
7 # This tool slims down an ICU data (.dat) file according to a config file.
162 ## STEP 0 - read in json config
164 config = json.load(fi)
167 config["variables"] = config.get("variables", {})
168 config["variables"]["locales"] = config["variables"].get("locales", {})
169 config["variables"]["locales"]["only"] = options.locales.split(',')
172 print(config)
174 if "comment" in config:
175 print("%s: %s" % (options.filterfile, config["comment"]))
199 if "remove" in config:
200 remove = set(config["remove"])
205 if "keep" in config:
206 keep = set(config["keep"])
212 if tree not in config.get("trees", {}):
218 if isinstance(config["trees"][tree], basestring):
219 treeStr = config["trees"][tree]
222 if treeStr not in config.get("variables", {}):
225 config["trees"][tree] = config["variables"][treeStr]
226 myconfig = config["trees"][tree]
291 if tree not in config.get("trees", {}):