o U7e@s0ddlZddlZddlmZGdddeZdS)N) ElementTreec@seZdZddZddZdS)CountryInformationc Csi|_d}tj|rCt|d}|d}|D]+}d|jvr$|jd}n|jd}d|jvr4|jd}n|jd}td||j|<qd|_ d|_ tj d d d }| d }| d } | dkrbt |} ||d| |_ ||j |_ dS)Nz%/usr/share/xml/iso-codes/iso_3166.xml)fileiso_3166_entry common_namename alpha_2_code alpha_3_codeiso_3166LANGzen.UK)default_.) countriesospathexistsriterattribgettextdgettextcountrycodegetenvfindlenget_country_name) selffnameetitelmdescrrlocaleazr(G/usr/lib/python3/dist-packages/softwareproperties/CountryInformation.py__init__s,           zCountryInformation.__init__cCs||jvr |j|}|S|S)N)r)rrrr(r(r)r7s  z#CountryInformation.get_country_nameN)__name__ __module__ __qualname__r*rr(r(r(r)rs r)rrxml.etree.ElementTreerobjectrr(r(r(r)s