[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Replace conf['paths'] by conf.getpath('paths')
commit 110dcfa3e797147a3cdb8ece41f69142593d82ef
Author: juga0 <juga@xxxxxxxxxx>
Date: Tue Jul 24 17:28:18 2018 +0000
Replace conf['paths'] by conf.getpath('paths')
---
sbws/core/scanner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index f7a08d7..64d6dba 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -376,7 +376,7 @@ def main(args, conf):
fail_hard('Max download size %d cannot be smaller than min %d',
max_dl, min_dl)
- os.makedirs(conf['paths']['datadir'], exist_ok=True)
+ os.makedirs(conf.getpath('paths', 'datadir'), exist_ok=True)
state = State(conf['paths']['state_fname'])
state['scanner_started'] = now_isodt_str()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits