commit 18af4c847c993448373b765fc8497c295090bb74 Author: juga0 juga@riseup.net Date: Tue Jul 24 17:24:23 2018 +0000
Replace conf['paths'] by conf.getpath('paths') --- sbws/core/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sbws/core/generate.py b/sbws/core/generate.py index f345f11..2055189 100644 --- a/sbws/core/generate.py +++ b/sbws/core/generate.py @@ -39,9 +39,9 @@ def gen_parser(sub):
def main(args, conf): - os.makedirs(conf['paths']['v3bw_dname'], exist_ok=True) + os.makedirs(conf.getpath('paths', 'v3bw_dname'), exist_ok=True)
- datadir = conf['paths']['datadir'] + datadir = conf.getpath('paths', 'datadir') if not os.path.isdir(datadir): fail_hard('%s does not exist', datadir) if args.scale_constant < 1: