From 504fbb6b856c56d99159ddc8baf9811bbde0ff56 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 5 Sep 2018 11:46:44 +0200 Subject: [PATCH] EDF bug 17743, salome.sg regressions in DEV (missing getAllSelected method) --- src/SalomeApp/SalomeApp_PyInterp.cxx | 2 +- src/SalomeApp/salome_pluginsmanager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_PyInterp.cxx b/src/SalomeApp/SalomeApp_PyInterp.cxx index 942aa6da4..88a07a2ba 100755 --- a/src/SalomeApp/SalomeApp_PyInterp.cxx +++ b/src/SalomeApp/SalomeApp_PyInterp.cxx @@ -72,7 +72,7 @@ int SalomeApp_PyInterp::beforeRun() int ret = simpleRun( "import salome", false ); if ( ret ) return ret; - ret = simpleRun( "salome.salome_init(1)", false ); + ret = simpleRun( "salome.salome_init(embedded=True)", false ); if ( ret ) return ret; } diff --git a/src/SalomeApp/salome_pluginsmanager.py b/src/SalomeApp/salome_pluginsmanager.py index 918bf871b..fefbe2c5f 100755 --- a/src/SalomeApp/salome_pluginsmanager.py +++ b/src/SalomeApp/salome_pluginsmanager.py @@ -241,7 +241,7 @@ class PluginsManager: def importPlugins(self): """Execute the salome_plugins file that contains plugins definition """ if self.lasttime ==0 or salome.myStudy == None: - salome.salome_init(embedded=1) + salome.salome_init(embedded=True) lasttime=0 -- 2.39.2