]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix venv directory in config files to point to appli symlink 'venv' BR_EMC2P_V_1_3_5 EMC2P_V_1_3_5-rc2 EMC2P_V_1_3_5-rc3
authorGilles DAVID <gilles-g.david@edf.fr>
Fri, 25 Mar 2022 10:46:58 +0000 (11:46 +0100)
committerGilles DAVID <gilles-g.david@edf.fr>
Fri, 25 Mar 2022 10:46:58 +0000 (11:46 +0100)
bin/appli_gen.py

index b01e789b0e466a90a97d389c023be2c26c044562..06de41b15a09a54456294fd66e87cc4f2920abc2 100755 (executable)
@@ -411,11 +411,11 @@ export LD_LIBRARY_PATH=${HOME}/${APPLI}/lib/salome:$LD_LIBRARY_PATH
         # Create environment for virtual env
         if venv_directory_path:
             command = """# SALOME venv Configuration
-export SALOME_VENV_DIRECTORY=%s
+export SALOME_VENV_DIRECTORY=${HOME}/${APPLI}/venv
 export PATH=${HOME}/${APPLI}/venv/bin:$PATH
 export LD_LIBRARY_PATH=${HOME}/${APPLI}/venv/lib:$LD_LIBRARY_PATH
 export PYTHONPATH=${HOME}/${APPLI}/venv/lib/python%s/site-packages
-""" % (venv_directory_path, versionPython)
+""" % (versionPython)
             f.write(command)
             pass
 
@@ -456,11 +456,11 @@ ADD_TO_LD_LIBRARY_PATH: ${HOME}/${APPLI}/lib/salome
         # Create environment for virtual env
         if venv_directory_path:
             command = """[SALOME venv Configuration]
-SALOME_VENV_DIRECTORY: %s
+SALOME_VENV_DIRECTORY: ${HOME}/${APPLI}/venv
 ADD_TO_PATH: ${HOME}/${APPLI}/venv/bin
 ADD_TO_LD_LIBRARY_PATH: ${HOME}/${APPLI}/venv/lib
 ADD_TO_PYTHONPATH: ${HOME}/${APPLI}/venv/lib/python%s/site-packages
-""" % (venv_directory_path, versionPython)
+""" % (versionPython)
             f.write(command)
             pass