From 1304ef1a835cfb0f5310a733b8873fa6e4bc2dea Mon Sep 17 00:00:00 2001 From: mdivecky Date: Sat, 27 Aug 2022 12:47:06 +0200 Subject: [PATCH] move config file to variable --- processor/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/processor/app.py b/processor/app.py index b6c56e7..bfff00a 100644 --- a/processor/app.py +++ b/processor/app.py @@ -18,8 +18,10 @@ from diff_match_patch import diff_match_patch # # Teď budeme kontrolovat jen titulky, ale postupně můžeme přidat i description článku +CONFIG_FILE = "../data/config.yaml" + config = confuse.Configuration('headline', __name__) -config.set_file('config.yaml') +config.set_file(CONFIG_FILE) dmp = diff_match_patch()