From 402a5aee1c37997748753cb257ea5fedb09fbdce Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 19 Apr 2021 10:50:41 +0200 Subject: [PATCH] driver en mode SSL --- src/KERNEL_PY/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/KERNEL_PY/__init__.py b/src/KERNEL_PY/__init__.py index 150bb4bc2..cbe51e8e0 100644 --- a/src/KERNEL_PY/__init__.py +++ b/src/KERNEL_PY/__init__.py @@ -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): -- 2.39.2