Fix for Python < 3.9
This commit is contained in:
parent
5ed2a97fc9
commit
f9149d7d17
@ -78,7 +78,9 @@ def main():
|
||||
|
||||
|
||||
config = {'global': {'out_dir': out_dir}}
|
||||
config.update(json.load(open(args.c)) if args.c else {})
|
||||
config_json = json.load(open(args.c)) if args.c else {}
|
||||
config['global'].update(config_json['global'] if 'global' in config_json else {})
|
||||
config['rasters'] = config_json['rasters'] if 'rasters' in config_json else {}
|
||||
|
||||
globalc = config['global']
|
||||
rasters = config['rasters'] if 'rasters' in config else [{}]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user