Commit 20777b9017ec57f4f2b090868062cbc6c0cf85c7
1 parent
9bfc3199
Exists in
master
and in
1 other branch
Corrige path TRANSLATE_DATA
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
src/AplicaSinonimos.py
... | ... | @@ -61,8 +61,6 @@ class AplicaSinonimos(object): |
61 | 61 | return set(open(path).read().decode('utf-8').split()) |
62 | 62 | |
63 | 63 | def localizar_arquivo_palavras_compostas(self): |
64 | - if platform.system() == 'Windows': | |
65 | - return environ.get("HOMEDRIVE")+'\\vlibras-libs\\vlibras-translate\data\\palavras_compostas.csv' | |
66 | - elif "TRANSLATE_DATA" in environ: | |
64 | + if "TRANSLATE_DATA" in environ: | |
67 | 65 | return path.join(environ.get("TRANSLATE_DATA"), "palavras_compostas.csv") |
68 | 66 | return expanduser("~")+'/vlibras-translate/data/palavras_compostas.csv' |
69 | 67 | \ No newline at end of file | ... | ... |