MiniSBD storage directory

@pierotofy I have a question about where MiniSBD stores the packages it downloads (on Linux).

Reading the code in argos-translate/package.py it seems like the minisbd packages should be saved to $HOME/.local/share/argos-translate/packages/translate-ar_en/minisbd.

Reading the code in minisbd/models.py it seems to want to save them to $HOME/.cache.

However, on my system at least they seem to get saved to $HOME/.local/share/argos-translate/minisbd/. I like this behavior and think that it’s a good place for them but I don’t understand why they’re being saved there.

I wanted to check the uninstall documentation to make sure that they were getting deleted along with the main packages.

When used as a standalone module, by default it will save models in ~/.cache/minisbd (MiniSBD/minisbd/models.py at main · LibreTranslate/MiniSBD · GitHub), but this can be changed, for example in LibreTranslate I changed it to <data_dir>/minisbd : argos-translate/argostranslate/sbd.py at d382e538fc423aa3bb3b9e631e5806d28d1f02d8 · LibreTranslate/argos-translate · GitHub

Great question!

1 Like