Salome HOME
updated copyright message
[tools/yacsgen.git] / Examples / context.py
index 05bc6e5f8a8d604418fe9a595b8727ef4abed406..077fbc1ea7334673d0dc8902cbf111908b056305 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2019  EDF R&D
+# Copyright (C) 2009-2023  EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 
 import os,sys
 
-SALOME_ROOT=os.getenv("SALOME_DIR")
-SALOME_PACKAGES=os.getenv("SALOME_DIR")
-SALOME_PREREQ=os.path.join(SALOME_PACKAGES, "salome_prerequisites.sh")
-#SALOME_PREREQ=os.path.join(SALOME_ROOT, "salome_prerequisites_appli.sh")
+SALOME_ROOT=os.getenv("ROOT_SALOME_INSTALL")
+SALOME_PREREQ=os.path.join(SALOME_ROOT, "env.d", "envProducts.sh")
 
 KERNEL_ROOT_DIR=os.getenv("KERNEL_ROOT_DIR","")
 GUI_ROOT_DIR=os.getenv("GUI_ROOT_DIR","")
@@ -37,6 +35,6 @@ context={'update':1,
          "geom":GEOM_ROOT_DIR,
         }
 
-
-aster_home=os.path.expanduser("~/Aster/V10.3/aster")
-aster_version="STA10.3"
+sys.path.insert(0, SALOME_ROOT)
+import salome_common
+SYS_MODULES=salome_common.MODULES