Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to set the path to projects.cfg with a command line option #210

Closed
osma opened this issue Nov 21, 2018 · 1 comment
Closed
Assignees
Milestone

Comments

@osma
Copy link
Member

osma commented Nov 21, 2018

As noted in #195, it should be possible to set the path to projects.cfg using a command line option. For example like this:

annif --projects /etc/annif/projects.cfg analyze tfidf-en <file.txt

Or just annif -p /etc/annif/projects.cfg as a shortcut

@juhoinkinen
Copy link
Member

Note: The application context via current_app is not available in callbacks: pallets/flask#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

@osma osma modified the milestones: Short term, v0.41 Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants