Closed maksverver closed 1 month ago
Hi, thank you for reporting this, https://github.com/lemon24/reader/commit/bdf9c182acfeb37ee36d9339d89abded47581bf6 should fix it.
Unfortunately that doesn't seem to fix the problem entirely, since get_app_dir()
is called when reader._cli
is imported, so the override happens too late to take effect:
I have an idea how to fix it properly. I'll send you a pull request.
Thank you for the PR!
To reproduce (on Linux):
Partial output:
The problem is that the CLI will read the local config from
~/.config/reader/config.yaml
, if that file exists, which can result in additional plugins to be loaded, and then the output doesn't match expectations.I can work around it locally like this:
I can also patch the test to do that, like this:
However, this seems a bit ugly and only fixes the issue on Linux.