From a66978003b24d5a79d6f9d0ad382e0c1bbe170a6 Mon Sep 17 00:00:00 2001 From: Christian Van Wambeke Date: Tue, 24 Oct 2023 16:30:18 +0200 Subject: [PATCH] fix SOLVERLAB.py SOLVERLABGUI.py --- products/env_scripts/SOLVERLAB.py | 5 ++++- products/env_scripts/SOLVERLABGUI.py | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/products/env_scripts/SOLVERLAB.py b/products/env_scripts/SOLVERLAB.py index e84c7cb..804b9a7 100644 --- a/products/env_scripts/SOLVERLAB.py +++ b/products/env_scripts/SOLVERLAB.py @@ -31,6 +31,9 @@ def set_env(env, product_dir, version): env.prepend('PYTHONPATH', os.path.join(root, 'lib', 'cdmath')) env.prepend('PYTHONPATH', os.path.join(root, 'bin', 'cdmath')) env.prepend('PYTHONPATH', os.path.join(root, 'bin', 'cdmath','postprocessing')) - + + env.set('SOLVERLAB_WORKDIR', "${HOME}/SOLVERLAB_WORKDIR") + env.set('USERLOGIN', "${USER}") + def set_nativ_env(env): pass diff --git a/products/env_scripts/SOLVERLABGUI.py b/products/env_scripts/SOLVERLABGUI.py index 8c71ff1..2f3a025 100644 --- a/products/env_scripts/SOLVERLABGUI.py +++ b/products/env_scripts/SOLVERLABGUI.py @@ -10,8 +10,9 @@ def set_env(env, product_dir, version): env.prepend('PYTHONPATH', product_dir) env.prepend('PYTHONPATH', os.path.join(product_dir, 'solverlabpy')) env.prepend('PYTHONPATH', os.path.join(product_dir, 'bin', 'salome')) - env.set('SOLVERLABGUI_WORKDIR', r'/tmp') - env.set('USERLOGIN', "$USER") + env.set('SOLVERLABGUI_WORKDIR', "${HOME}/SOLVERLAB_WORKDIR") + env.set('USERLOGIN', "${USER}") # for windaube def set_nativ_env(env): pass + -- 2.39.2