Closed osma closed 5 years ago
Note: The application context via current_app
is not available in callbacks: https://github.com/pallets/flask/issues/2410
For this reason the with:
block in set_project_config_file_path()
is needed: https://github.com/NatLibFi/Annif/blob/master/annif/cli.py#L80
As noted in #195, it should be possible to set the path to
projects.cfg
using a command line option. For example like this:Or just
annif -p /etc/annif/projects.cfg
as a shortcut