From: Konstantin LEONTEV Date: Thu, 23 Feb 2023 15:12:29 +0000 (+0100) Subject: [bos #32522][EDF] SALOME on Demand. Revert to using None for SalomeContext init. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d841cbbebf7b127fc4606e8b6fe0a2f9dab59ed7;p=modules%2Fkernel.git [bos #32522][EDF] SALOME on Demand. Revert to using None for SalomeContext init. --- diff --git a/bin/SalomeOnDemandTK/extension_utilities.py b/bin/SalomeOnDemandTK/extension_utilities.py index 2a5b72864..deb8ee6df 100644 --- a/bin/SalomeOnDemandTK/extension_utilities.py +++ b/bin/SalomeOnDemandTK/extension_utilities.py @@ -596,7 +596,7 @@ def set_selext_env(install_dir, salomex_name, context=None): # Set the root dir as env variable if not context: - context = salomeContext.SalomeContext(0) + context = salomeContext.SalomeContext(None) context.setVariable('SALOME_APPLICATION_DIR', install_dir, overwrite=False) # Find env file diff --git a/bin/runSalomeOnDemand.py b/bin/runSalomeOnDemand.py index 1117b6a51..1326dd827 100755 --- a/bin/runSalomeOnDemand.py +++ b/bin/runSalomeOnDemand.py @@ -62,7 +62,7 @@ def set_ext_env(app_name='', version=''): return # Set the root dir as env variable - context = salomeContext.SalomeContext(0) + context = salomeContext.SalomeContext(None) context.setVariable('SALOME_APPLICATION_DIR', app_root, overwrite=True) # Execute env file as a module