]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Start of management of foreground in SSL context agy/29134
authorAnthony Geay <anthony.geay@edf.fr>
Sat, 19 Feb 2022 06:42:23 +0000 (07:42 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Sat, 19 Feb 2022 06:42:23 +0000 (07:42 +0100)
src/SalomeApp/salome_pluginsmanager.py

index 25276d4416e31ba2abbc778779fa1d124aa26d67..94dcfe75d2bce9f7cbf4e9eaf8dacb1324acc2b1 100644 (file)
@@ -244,8 +244,13 @@ class PluginsManager:
 
     def importPlugins(self):
         """Execute the salome_plugins file that contains plugins definition """
+        ior_fake_ns = None
+        prefix_ior = "--iorfakens="
+        presence_ior = [elt for elt in QApplication.arguments() if elt[:len(prefix_ior)]==prefix_ior]
+        if any(presence_ior):
+          ior_fake_ns = presence_ior[-1][len(prefix_ior):]
         if self.lasttime ==0 or salome.myStudy == None:
-          salome.salome_init(embedded=True)
+          salome.salome_init(embedded=True,iorfakensfile=ior_fake_ns)
 
         lasttime=0