borgend/config.py

changeset 132
8fe3cf6487f8
parent 97
96d5adbe0205
equal deleted inserted replaced
131:d5351f9fe8b8 132:8fe3cf6487f8
153 raise SystemExit("Configuration file required: %s" % locations.cfgfile) 153 raise SystemExit("Configuration file required: %s" % locations.cfgfile)
154 154
155 logger.info("Reading configuration %s missing" % locations.cfgfile) 155 logger.info("Reading configuration %s missing" % locations.cfgfile)
156 156
157 with io.open(locations.cfgfile, 'r') as file: 157 with io.open(locations.cfgfile, 'r') as file:
158 settings=expand_env(yaml.load(file), os.environ); 158 settings=expand_env(yaml.load(file, Loader=yaml.FullLoader), os.environ);
159 159
160 # 160 #
161 # Verify basic settings 161 # Verify basic settings
162 # 162 #
163 163

mercurial