Lines Matching refs:config_filename
27 def update_config(self, new_values, config_filename): argument
55 if not os.path.isfile(config_filename):
56 self._create_file(config_filename)
57 self._write_new_section(section_name, new_values, config_filename)
59 with open(config_filename, 'r') as f:
65 with open(config_filename, 'w') as f:
68 self._write_new_section(section_name, new_values, config_filename)
70 def _create_file(self, config_filename): argument
72 dirname = os.path.split(config_filename)[0]
75 with os.fdopen(os.open(config_filename,
79 def _write_new_section(self, section_name, new_values, config_filename): argument
80 with open(config_filename, 'a') as f: