diff --git a/src/AplicaRegras.py b/src/AplicaRegras.py index a15b3f3..bfc11c8 100644 --- a/src/AplicaRegras.py +++ b/src/AplicaRegras.py @@ -33,7 +33,7 @@ class AplicaRegras(object): # Gera arvore a partir do arquivos regras.xml def get_root(self): if platform.system() == 'Windows': - return ET.parse(expanduser("~")+'\\vlibras-translate\data\\regras.xml').getroot() + return ET.parse(environ.get("HOMEDRIVE")+'\\vlibras-libs\\vlibras-translate\data\\regras.xml').getroot() return ET.parse(expanduser("~")+'/vlibras-translate/data/regras.xml').getroot() # Aplica regras morfológicas apartir do arquivo regras.xml -- libgit2 0.21.2