From: Anthony Geay Date: Mon, 19 Apr 2021 08:50:41 +0000 (+0200) Subject: driver en mode SSL X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=402a5aee1c37997748753cb257ea5fedb09fbdce;p=modules%2Fkernel.git driver en mode SSL --- 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):