Salome HOME
Minor documentation and code review corrections (30) V9_9_0
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 30 May 2022 13:43:07 +0000 (15:43 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 30 May 2022 13:43:07 +0000 (15:43 +0200)
Follow change in SALOME environment variables

doc/en/advanced.rst
doc/fr/advanced.rst
src/daComposant/daCore/Interfaces.py
src/daComposant/daCore/PlatformInfo.py

index 695c07dd80802c569cf88f5c5ea64f92105cfd80..8be42b11b4857b135f16129897ab42018e33d1c0 100644 (file)
@@ -576,9 +576,11 @@ Switching from a version of ADAO to a newer one
 .. index:: single: Version
 
 The ADAO module and its ".comm" case files are identified by versions, with
-"Major", "Minor" and "Revision" characteristics. A particular version is
-numbered as "Major.Minor.Revision", with strong link with the numbering of the
-SALOME platform.
+"Major", "Minor", "Revision" and optionally "Installation" characteristics. A
+particular version is numbered as "Major.Minor.Revision", with strong link with
+the numbering of the SALOME platform. The optional indication of a fourth
+number indicates a difference in the installation method, not in the content of
+the version.
 
 Each version "Major.Minor.Revision" of the ADAO module can read ADAO case files
 of the previous minor version "Major.Minor-1.*". In general, it can also read
index 896fc5d88a6d43000c7f362c88da99b9be4d47d0..d613f97d316659d6a666b8adae7366f6d2798ad6 100644 (file)
@@ -628,9 +628,11 @@ Passer d'une version d'ADAO à une nouvelle
 .. index:: single: Version
 
 Le module ADAO et ses fichiers de cas ".comm" sont identifiés par des versions,
-avec des caractéristiques "Major", "Minor" et "Revision". Une version
-particulière est numérotée "Major.Minor.Revision", avec un lien fort avec la
-numérotation de la plateforme SALOME.
+avec des caractéristiques "Major", "Minor", "Revision" et optionnellement
+"Installation". Une version particulière est numérotée "Major.Minor.Revision",
+avec un lien fort avec la numérotation de la plateforme SALOME. L'indication
+optionnelle d'un quatrième numéro désigne une différence dans le mode
+d'installation, pas dans le contenu de la version.
 
 Chaque version "Major.Minor.Revision" du module ADAO peut lire les fichiers de
 cas ADAO de la précédente version mineure "Major.Minor-1.*". En général, elle
index 175b9b663b1dd328355cb644e3904bd11b06d78e..9a7d54ea982991e73906d5a0d0d5ce10050491ef 100644 (file)
@@ -609,7 +609,7 @@ class _YACSViewer(GenericCaseViewer):
         if not PlatformInfo.has_salome or \
             not PlatformInfo.has_adao:
             raise ImportError(
-                "Unable to get SALOME or ADAO environnement for YACS conversion.\n"+\
+                "Unable to get SALOME (%s) or ADAO (%s) environnement for YACS conversion.\n"%(PlatformInfo.has_salome,PlatformInfo.has_adao)+\
                 "Please load the right SALOME environnement before trying to use it.")
         else:
             from daYacsSchemaCreator.run import create_schema_from_content
index 1bb6937f9014bce46fab487b45f411db560ead77..d3f9ea5ffa0e11268c3c75878344067f1a45d5f4 100644 (file)
@@ -259,9 +259,9 @@ try:
 except ImportError:
     has_sdf = False
 
-has_salome = bool( "ROOT_SALOME"   in os.environ )
-has_yacs   = bool( "YACS_ROOT_DIR" in os.environ )
-has_adao   = bool( "ADAO_ROOT_DIR" in os.environ )
+has_salome = bool( "SALOME_ROOT_DIR" in os.environ )
+has_yacs   = bool(   "YACS_ROOT_DIR" in os.environ )
+has_adao   = bool(   "ADAO_ROOT_DIR" in os.environ )
 has_eficas = bool( "EFICAS_ROOT_DIR" in os.environ )
 
 # ==============================================================================