use py2-style ConfigParser-get-methods
This commit is contained in:
parent
4329ad2e11
commit
6e7922492a
|
@ -16,7 +16,6 @@ def parse_config(config_path):
|
|||
config.has_option('General', 'outputfile')):
|
||||
raise InvalidConfig
|
||||
|
||||
general = config['General']
|
||||
log_path = abspath(general['logfile'])
|
||||
output_path = abspath(general['outputfile'])
|
||||
log_path = abspath(config.get('General', 'logfile'))
|
||||
output_path = abspath(config.get('General', 'outputfile'))
|
||||
return log_path, output_path
|
||||
|
|
Loading…
Reference in New Issue