]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
driver en mode SSL
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 19 Apr 2021 08:50:41 +0000 (10:50 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 19 Apr 2021 08:50:41 +0000 (10:50 +0200)
src/KERNEL_PY/__init__.py

index 150bb4bc292bc2a0f2fb07a072440e757d33b7e9..cbe51e8e04e3cb8bf575c08e0ddd21ac21a9ef50 100644 (file)
@@ -177,7 +177,11 @@ def salome_init(path=None, embedded=False):
     if __EMB_SERVANT_ENV_VAR_NAME in os.environ:
         salome_init_without_session()
     else:
-        salome_init_with_session(path, embedded)
+        import KernelBasis
+        if KernelBasis.getSSLMode():
+            salome_init_without_session()
+        else:
+            salome_init_with_session(path, embedded)
 
 class StandAloneLifecyle:
     def FindOrLoadComponent(self,contName,moduleName):