]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Related to e7260: missing modules in PYTHONPATH
authorCédric Aguerre <cedric.aguerre@edf.fr>
Mon, 17 Feb 2020 14:27:28 +0000 (15:27 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Mon, 17 Feb 2020 14:27:34 +0000 (15:27 +0100)
But should not be taken from bin/salome!!

bin/appli_gen.py

index f42b4dbcdf13cd61104ac8e1dc1ff38eb4091172..92663eb514624bcb7b0992d4e43a890268cdc930 100755 (executable)
@@ -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)