Closed gottschali closed 4 years ago
Should read --help more carefully.
-b, --base TEXT Set Anki base directory
apy -b .local/share/share/Anki2 in my case
Well it finds my decks and note types, but I still get the same error on info/add/list/ and basically every other command.
That's strange. It would help if you could show me the exact command that you use when you also include the -b
option.
In your last comment, it seems it works for some commands but not for others. Again, it is much easier to help if you are specific. What works, what does not work?
Note: You can specify the -b
option in the config file located at ~/.config/apy/apy.json
. My config file looks like this:
{
"base": "/home/lervag/documents/anki",
"pngCommands": [
["latex", "-interaction=nonstopmode", "tmp.tex"],
["dvipng", "-D", "150", "-T", "tight", "-bg", "Transparent",
"tmp.dvi", "-o", "tmp.png"]
],
"svgCommands": [
["lualatex", "-interaction=nonstopmode", "tmp.tex"],
["pdfcrop", "tmp.pdf", "tmp.pdf"],
["pdf2svg", "tmp.pdf", "tmp.svg"]
]
}
Ok the problem was that I thought apy --base
would set the path permenantly...
With "base": "/home/ali/.local/share/Anki2/",
for my case in my config it now works like a charm.
Great, happy to hear it! And please, open more issues if you find things not working as expected or if you have ideas for how to improve.
Anki is at /usr/share/anki Cloned and pip-installed as in README (not developer version)