Commit e217606583ab22e770431f7d78f225d8053af91a
1 parent
b5fba479
Exists in
master
and in
1 other branch
Corrige get environ HOMEDRIVE
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/LerDicionarios.py
@@ -30,7 +30,7 @@ class LerDicionarios(object): | @@ -30,7 +30,7 @@ class LerDicionarios(object): | ||
30 | 30 | ||
31 | def get_path(self): | 31 | def get_path(self): |
32 | if platform.system() == 'Windows': | 32 | if platform.system() == 'Windows': |
33 | - return os.environ.get("HOMEDRIVE") + "\vlibras-libs\vlibras-translate\data\" | 33 | + return environ.get("HOMEDRIVE") + "\vlibras-libs\vlibras-translate\data\" |
34 | return expanduser("~") + "/vlibras-translate/data/" | 34 | return expanduser("~") + "/vlibras-translate/data/" |
35 | 35 | ||
36 | def carregar_dicionarios(self): | 36 | def carregar_dicionarios(self): |
src/alexp.py
@@ -86,7 +86,7 @@ def encontraArquivo(): | @@ -86,7 +86,7 @@ def encontraArquivo(): | ||
86 | """ | 86 | """ |
87 | so = platform.system() | 87 | so = platform.system() |
88 | if so == 'Windows': | 88 | if so == 'Windows': |
89 | - return os.environ.get("HOMEDRIVE") + "\vlibras-libs\vlibras-translate\data\cfg.syn.nltk" | 89 | + return environ.get("HOMEDRIVE") + "\vlibras-libs\vlibras-translate\data\cfg.syn.nltk" |
90 | else: | 90 | else: |
91 | return expanduser("~") + "/vlibras-translate/data/cfg.syn.nltk" | 91 | return expanduser("~") + "/vlibras-translate/data/cfg.syn.nltk" |
92 | 92 |