aboutsummaryrefslogtreecommitdiffstats
path: root/chocula_tool.py
diff options
context:
space:
mode:
Diffstat (limited to 'chocula_tool.py')
-rwxr-xr-xchocula_tool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chocula_tool.py b/chocula_tool.py
index 76e7c59..7dfe80e 100755
--- a/chocula_tool.py
+++ b/chocula_tool.py
@@ -111,9 +111,10 @@ def main():
print("tell me what to do! (try --help)")
sys.exit(-1)
+ config = ChoculaConfig.from_file()
cdb = ChoculaDatabase(args.db_file)
if args.func.startswith('index_') or args.func in ('everything','summarize',):
- cdb.read_issn_map_file(ISSNL_FILE)
+ cdb.read_issn_map_file(config.issnl.filepath)
func = getattr(cdb, args.func)
func(args)