122 |
124 |
123 return out |
125 return out |
124 |
126 |
125 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, "borgend", "config.yaml") |
127 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, "borgend", "config.yaml") |
126 |
128 |
127 logging.info("Reading configuration file %s" % cfgfile) |
129 logger.info("Reading configuration file %s" % cfgfile) |
128 |
130 |
129 if not (os.path.exists(cfgfile) and os.path.isfile(cfgfile)): |
131 if not (os.path.exists(cfgfile) and os.path.isfile(cfgfile)): |
130 raise SystemExit('Configuration file required: {cfgfile}') |
132 raise SystemExit('Configuration file required: {cfgfile}') |
131 |
133 |
132 with io.open(cfgfile, 'r') as file: |
134 with io.open(cfgfile, 'r') as file: |