Commit 0488a2ce098cbb6713632cb3fd644cdac825d2f1

Authored by bruno
1 parent 72b2015a
Exists in master and in 1 other branch devel

Corrigindo Path do AplicaRegras.py

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/AplicaRegras.py
@@ -33,7 +33,7 @@ class AplicaRegras(object): @@ -33,7 +33,7 @@ class AplicaRegras(object):
33 # Gera arvore a partir do arquivos regras.xml 33 # Gera arvore a partir do arquivos regras.xml
34 def get_root(self): 34 def get_root(self):
35 if platform.system() == 'Windows': 35 if platform.system() == 'Windows':
36 - return ET.parse(expanduser("~")+'\vlibras-translate\data\regras.xml').getroot() 36 + return ET.parse(environ.get("HOMEDRIVE")+'\\vlibras-libs\vlibras-translate\data\regras.xml').getroot()
37 return ET.parse(expanduser("~")+'/vlibras-translate/data/regras.xml').getroot() 37 return ET.parse(expanduser("~")+'/vlibras-translate/data/regras.xml').getroot()
38 38
39 # Aplica regras morfológicas apartir do arquivo regras.xml 39 # Aplica regras morfológicas apartir do arquivo regras.xml