Plugin mode for languages

Issue #6 resolved
Antoine Pietri created an issue

We should source python files in paths like:

  • /usr/share/camisole/lang
  • ~/.local/share/camisole/lang

Maybe split, one file per language? Configuration file to know which languages we want to enable? /etc/camisole.conf? -c option?

Comments (5)

  1. Alexandre Macabies

    I've almost finished this, but there is a problem: $ camisole languages uses reference files stored in the package. Users can not easily add reference files for their custom languages.

    • do we also use search paths for ref? seems contrived!
    • or do we just embed the ref source in an attribute of each Lang subclass; ugly code-wise, but solves this problem (and also, no need for MANIFEST.in when packaging)
  2. Antoine Pietri reporter

    I would say the second one, and we can split the languages in one file per language.

  3. Log in to comment