def save_config(self):
if not os.path.exists(self._conf_dir):<EOL><INDENT>os.makedirs(self._conf_dir)<EOL><DEDENT>conf_file = os.path.join(self._conf_dir, "<STR_LIT>")<EOL>with open(conf_file, "<STR_LIT:w>") as ofile:<EOL><INDENT>json.dump(self.conf, ofile, indent=<NUM_LIT:2>)<EOL><DEDENT>
Save the conf file