plt_name = "Debian"
plt_ver = open("/etc/debian_version").readline().strip()
_xml_file_name = "config_%s_%s.xml"%(plt_name, plt_ver)
+ if plt_name and plt_ver and os.path.exists("%s/%s"%(cur_dir, _xml_file_name)):
+ xml_file_name = _xml_file_name
+ elif os.path.exists("/etc/mandriva_release"):
+ # - Mandriva 2006
+ plt_name = "Mandriva"
+ plt_ver = open("/etc/mandriva_release").readline().strip()
+ _xml_file_name = "config_%s_%s.xml"%(plt_name, plt_ver)
if plt_name and plt_ver and os.path.exists("%s/%s"%(cur_dir, _xml_file_name)):
xml_file_name = _xml_file_name
else: