]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[bos #32522][EDF] SALOME on Demand. Revert to using None for SalomeContext init.
authorKonstantin LEONTEV <konstantin.leontev@opencascade.com>
Thu, 23 Feb 2023 15:12:29 +0000 (16:12 +0100)
committerKonstantin LEONTEV <konstantin.leontev@opencascade.com>
Wed, 8 Mar 2023 12:46:28 +0000 (13:46 +0100)
bin/SalomeOnDemandTK/extension_utilities.py
bin/runSalomeOnDemand.py

index 2a5b7286486cab1372ec9c42b8c161c53068aadf..deb8ee6dfbd47462c5b86d11a5ae3a814dcb1dec 100644 (file)
@@ -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
index 1117b6a510d35e851250ca438eb7d8016a779923..1326dd827184941e50c697026e4dfe8582479f6a 100755 (executable)
@@ -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