110 |
111 |
111 return out |
112 return out |
112 |
113 |
113 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, "borgend", "config.yaml") |
114 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, "borgend", "config.yaml") |
114 |
115 |
|
116 logging.info("Reading configuration file %s" % cfgfile) |
|
117 |
115 if not (os.path.exists(cfgfile) and os.path.isfile(cfgfile)): |
118 if not (os.path.exists(cfgfile) and os.path.isfile(cfgfile)): |
116 raise SystemExit(f'Configuration file required: {cfgfile}') |
119 raise SystemExit(f'Configuration file required: {cfgfile}') |
117 |
120 |
118 with io.open(cfgfile, 'r') as file: |
121 with io.open(cfgfile, 'r') as file: |
119 settings=expand_env(yaml.load(file), os.environ); |
122 settings=expand_env(yaml.load(file), os.environ); |