From: Cédric Aguerre Date: Mon, 17 Feb 2020 14:27:28 +0000 (+0100) Subject: Related to e7260: missing modules in PYTHONPATH X-Git-Tag: V9_5_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0e6127daac8ddcc16c6bb2e736e974ff9512f222;p=modules%2Fkernel.git Related to e7260: missing modules in PYTHONPATH But should not be taken from bin/salome!! --- 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)