From 0e6127daac8ddcc16c6bb2e736e974ff9512f222 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Mon, 17 Feb 2020 15:27:28 +0100 Subject: [PATCH] Related to e7260: missing modules in PYTHONPATH But should not be taken from bin/salome!! --- bin/appli_gen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/appli_gen.py b/bin/appli_gen.py index f42b4dbcd..92663eb51 100755 --- a/bin/appli_gen.py +++ b/bin/appli_gen.py @@ -357,9 +357,11 @@ def install(prefix, config_file, verbose=0): if "resources_path" in _config and os.path.isfile(_config["resources_path"]): command = 'export USER_CATALOG_RESOURCES_FILE=' + os.path.abspath(_config["resources_path"]) +'\n' f.write(command) + # Note: below, PYTHONPATH should not be extended to bin/salome! Python modules must be installed in lib/pythonX.Y, to be fixed (e.g. Kernel SALOME_Container.py) command ="""export PATH=${HOME}/${APPLI}/bin/salome:$PATH export PYTHONPATH=${HOME}/${APPLI}/lib/python%s/site-packages/salome:$PYTHONPATH export PYTHONPATH=${HOME}/${APPLI}/lib/salome:$PYTHONPATH +export PYTHONPATH=${HOME}/${APPLI}/bin/salome:$PYTHONPATH export LD_LIBRARY_PATH=${HOME}/${APPLI}/lib/salome:$LD_LIBRARY_PATH """ %versionPython f.write(command) -- 2.39.2