move config file to variable

This commit is contained in:
mdivecky 2022-08-27 12:47:06 +02:00
parent 0e6143ed6e
commit 1304ef1a83

View file

@ -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()