config.py

changeset 1
4cdc9c1f6b28
parent 0
f5aecaad0bcf
child 2
e343594c0014
equal deleted inserted replaced
0:f5aecaad0bcf 1:4cdc9c1f6b28
26 if not (os.path.exists(cfgfile) and os.path.isfile(cfgfile)): 26 if not (os.path.exists(cfgfile) and os.path.isfile(cfgfile)):
27 raise SystemExit(f'Configuration file required: {cfgfile}') 27 raise SystemExit(f'Configuration file required: {cfgfile}')
28 28
29 with io.open(cfgfile, 'r') as file: 29 with io.open(cfgfile, 'r') as file:
30 settings=expand_env(yaml.load(file), os.environ); 30 settings=expand_env(yaml.load(file), os.environ);
31

mercurial