X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Examples%2Fcontext.py;h=077fbc1ea7334673d0dc8902cbf111908b056305;hb=032b3c67203d4aaf5104556aa485547f8085c374;hp=8f07bf11b60fc66590fcc8ad2ad6072973d12b08;hpb=91aafae1e62ca48fc350f9cb8dd6633a898622fd;p=tools%2Fyacsgen.git diff --git a/Examples/context.py b/Examples/context.py index 8f07bf1..077fbc1 100644 --- a/Examples/context.py +++ b/Examples/context.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2016 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 @@ -19,10 +19,8 @@ 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