Convert datadir within config to Path

(it's used as Path all the time!)
This commit is contained in:
Matthias
2019-12-23 15:09:17 +01:00
parent 506907ddc9
commit bb8acc61db
5 changed files with 9 additions and 11 deletions

View File

@@ -403,7 +403,7 @@ class Configuration:
config['pairs'] = config.get('exchange', {}).get('pair_whitelist')
else:
# Fall back to /dl_path/pairs.json
pairs_file = Path(config['datadir']) / "pairs.json"
pairs_file = config['datadir'] / "pairs.json"
if pairs_file.exists():
with pairs_file.open('r') as f:
config['pairs'] = json_load(f)