[sbws/master] Replace conf['paths'] by conf.getpath('paths')

9 Aug
2018
9 Aug
'18
2:21 p.m.
commit 87818dfe5efc07be3131779d8dfc28a38a9e41a9 Author: juga0 <juga@riseup.net> Date: Tue Jul 24 17:23:52 2018 +0000 Replace conf['paths'] by conf.getpath('paths') --- sbws/core/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbws/core/cleanup.py b/sbws/core/cleanup.py index 4600cf8..9a04ec0 100644 --- a/sbws/core/cleanup.py +++ b/sbws/core/cleanup.py @@ -174,7 +174,7 @@ def main(args, conf): :param argparse.Namespace args: command line arguments :param configparser.ConfigParser conf: parsed config files ''' - datadir = conf['paths']['datadir'] + datadir = conf.getpath('paths', 'datadir') if not os.path.isdir(datadir): fail_hard('%s does not exist', datadir)
2475
Age (days ago)
2475
Last active (days ago)
0 comments
1 participants
participants (1)
-
pastly@torproject.org