in pygenie/conf.py [0:0]
def load_config_file(self, config_file):
"""Load a configuration file (ini)."""
if config_file is not None and os.path.exists(config_file):
logger.debug('adding config file: %s', config_file)
self._config_files.append(config_file)
C.addOptionFile(config_file)
# options specified via cmd line should always override config files
sys_argv_configs = [sys.argv[i + 1] for i, arg in enumerate(sys.argv) \
if arg == '--config']
for option in sys_argv_configs:
C.addOption(option)
self._load_options()
logger.debug('configuration:\n%s', self.to_json())
return self