1.1 --- a/tools/set_delegates.py Tue Jan 31 16:06:40 2017 +0100
1.2 +++ b/tools/set_delegates.py Tue Jan 31 16:18:55 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Set delegates for a particular quota.
1.6
1.7 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -32,7 +32,7 @@
1.13 if split(parent)[1] == "imip-agent":
1.14 sys.path.append(parent)
1.15
1.16 -from imiptools import config
1.17 +from imiptools.config import settings
1.18 from imiptools.stores import get_journal
1.19 from imiptools.text import get_table_from_stream
1.20
1.21 @@ -76,7 +76,7 @@
1.22
1.23 getvalue = lambda value, default=None: value and value[0] or default
1.24
1.25 - store_type = getvalue(store_type, config.STORE_TYPE)
1.26 + store_type = getvalue(store_type, settings["STORE_TYPE"])
1.27 journal_dir = getvalue(journal_dir)
1.28
1.29 # Obtain store-related objects.