mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 23:41:01 +00:00
use appdirs to define path to polyglot data
This commit is contained in:
parent
e0693d697e
commit
dd128162ef
2 changed files with 9 additions and 0 deletions
|
@ -1,2 +1,10 @@
|
||||||
|
import os
|
||||||
|
from appdirs import user_data_dir
|
||||||
|
|
||||||
|
# override polyglot path
|
||||||
|
import polyglot
|
||||||
|
polyglot.polyglot_path = os.path.join(user_data_dir(appname="LibreTranslate", appauthor="uav4geo"), "polyglot_data")
|
||||||
|
|
||||||
|
|
||||||
from .main import main
|
from .main import main
|
||||||
from .manage import manage
|
from .manage import manage
|
||||||
|
|
|
@ -9,3 +9,4 @@ pyicu==2.6
|
||||||
pycld2==0.41
|
pycld2==0.41
|
||||||
morfessor==2.0.6
|
morfessor==2.0.6
|
||||||
polyglot==16.7.4
|
polyglot==16.7.4
|
||||||
|
appdirs==1.4.4
|
||||||
|
|
Loading…
Reference in a new issue