This script is the part of the SALOME installation procedure.
Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
Created : Thu Dec 18 12:01:00 2002
-Copyright : 2002-2006 CEA
+Copyright : 2002-2007 CEA
"""
plt_ver = ""
plt_bit = ""
xml_file_name = "config.xml"
- if os.path.exists("/etc/redhat-release"):
+ if os.path.exists("/etc/fedora-release"):
+ # - Fedora Core 4
+ plt_name = "Fedora"
+ data = open("/etc/fedora-release").readline()
+ res = re.search(r'Fedora.*release\s+([\d.]*)', data)
+ if res:
+ plt_ver = res.group(1)
+ elif os.path.exists("/etc/redhat-release"):
# - Red Hat Linux 8.0
# - Red Hat Linux 9
# - Mandrake Linux 10.1