X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Firpf-gui.git;a=blobdiff_plain;f=src%2Fmunicipios.py;h=559c814f6bfb8b9c8090a8c8b1eff7175b37e2aa;hp=74f63054bc3899670729f18fbb932ad833b574ff;hb=5833c9bc9152992862027fe1e78f952281b665a8;hpb=d5711ec17637a1c815e8a62c45bf5582830ddf54 diff --git a/src/municipios.py b/src/municipios.py index 74f6305..559c814 100644 --- a/src/municipios.py +++ b/src/municipios.py @@ -15,6 +15,7 @@ # along with this program. If not, see . # -*- mode: python; encoding: utf-8; -*- import xml.dom.minidom +import dirs class Municipios: def __init__(self): @@ -36,8 +37,9 @@ class Municipios: return None def carregar_estado(self, UF): + irpf_dir = dirs.get_default_irpf_dir() self.l = [] - self.xml = xml.dom.minidom.parse("res/%s.xml" % (UF,)) + self.xml = xml.dom.minidom.parse(irpf_dir.get_resource_file("%s.xml" % (UF,))) self._list() def verify_cep(self, m, cep):