Plugin mode for languages
seirl opened this issue · 4 comments
seirl commented
Originally posted 2017-01-10 18:01 by serialk on Bitbucket
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?
zopieux commented
Originally posted 2017-01-13 00:17 by Zopieux on Bitbucket
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)
seirl commented
Originally posted 2017-01-13 00:20 by serialk on Bitbucket
I would say the second one, and we can split the languages in one file per language.