mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-24 10:06:43 +02:00
use appdirs to define path to polyglot data
This commit is contained in:
parent
e0693d697e
commit
dd128162ef
@ -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 New Issue
Block a user