Closed osma closed 6 years ago
As noted in #195, it should be possible to set the path to projects.cfg using an environment variable, e.g.
projects.cfg
export ANNIF_PROJECTS=/etc/annif/projects.cfg annif analyze tfidf-fi <doc.txt
Flask documentation: http://flask.pocoo.org/docs/1.0/config/#configuring-from-environment-variables
It makes sense to do this in default_config.py, and to also allow setting ANNIF_DATADIR.
default_config.py
ANNIF_DATADIR
As noted in #195, it should be possible to set the path to
projects.cfg
using an environment variable, e.g.