From: mbs Date: Fri, 26 Jan 2024 22:22:42 +0000 (+0000) Subject: fixed incorrect call to salome.salome_init() X-Git-Tag: V9_13_0a1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmbs%2Fbos24301_ob_refresh;p=modules%2Fshaper.git fixed incorrect call to salome.salome_init() --- diff --git a/src/ConnectorAPI/Test/Test17917.py b/src/ConnectorAPI/Test/Test17917.py index cc6ef8777..b6228a366 100644 --- a/src/ConnectorAPI/Test/Test17917.py +++ b/src/ConnectorAPI/Test/Test17917.py @@ -19,7 +19,7 @@ import salome salome.standalone() -salome.salome_init(1) +salome.salome_init(embedded=True) from SketchAPI import * from salome.shaper import model diff --git a/src/ConnectorAPI/Test/Test2882.py b/src/ConnectorAPI/Test/Test2882.py index 23a7af041..c07fd385e 100644 --- a/src/ConnectorAPI/Test/Test2882.py +++ b/src/ConnectorAPI/Test/Test2882.py @@ -23,7 +23,7 @@ from salome.shaper import model import salome salome.standalone() -salome.salome_init(1) +salome.salome_init(embedded=True) model.begin() partSet = model.moduleDocument() diff --git a/src/ConnectorAPI/Test/TestExportSTL.py b/src/ConnectorAPI/Test/TestExportSTL.py index 8fcb17c1a..39695139c 100644 --- a/src/ConnectorAPI/Test/TestExportSTL.py +++ b/src/ConnectorAPI/Test/TestExportSTL.py @@ -44,7 +44,7 @@ from GeomAlgoAPI import * __updated__ = "2015-05-22" -salome.salome_init(1) +salome.salome_init(embedded=True) geompy = geomBuilder.New() #========================================================================= diff --git a/src/ConnectorAPI/Test/TestExportToGEOM.py b/src/ConnectorAPI/Test/TestExportToGEOM.py index 22d9f59ba..c80d36b30 100644 --- a/src/ConnectorAPI/Test/TestExportToGEOM.py +++ b/src/ConnectorAPI/Test/TestExportToGEOM.py @@ -25,7 +25,7 @@ import tempfile salome.standalone() from salome.geom import geomBuilder -salome.salome_init(1) +salome.salome_init(embedded=True) geompy = geomBuilder.New() ## Get the last object published in the GEOM section of the object browser diff --git a/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py b/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py index e5e6f1269..01284fa00 100644 --- a/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py +++ b/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py @@ -27,7 +27,7 @@ import tempfile salome.standalone() from salome.geom import geomBuilder -salome.salome_init(1) +salome.salome_init(embedded=True) geompy = geomBuilder.New() ## Get the last object published in the GEOM section of the object browser diff --git a/src/ConnectorAPI/Test/TestExportToGEOMWholeFeature.py b/src/ConnectorAPI/Test/TestExportToGEOMWholeFeature.py index 4d06b6b2f..60634e424 100644 --- a/src/ConnectorAPI/Test/TestExportToGEOMWholeFeature.py +++ b/src/ConnectorAPI/Test/TestExportToGEOMWholeFeature.py @@ -27,7 +27,7 @@ import tempfile salome.standalone() from salome.geom import geomBuilder -salome.salome_init(1) +salome.salome_init(embedded=True) geompy = geomBuilder.New() ## Get the last object published in the GEOM section of the object browser diff --git a/src/ConnectorAPI/Test/TestExportToGEOMWholeResult.py b/src/ConnectorAPI/Test/TestExportToGEOMWholeResult.py index af662c831..b606d01ba 100644 --- a/src/ConnectorAPI/Test/TestExportToGEOMWholeResult.py +++ b/src/ConnectorAPI/Test/TestExportToGEOMWholeResult.py @@ -26,7 +26,7 @@ import tempfile salome.standalone() from salome.geom import geomBuilder -salome.salome_init(1) +salome.salome_init(embedded=True) geompy = geomBuilder.New() ## Get the last object published in the GEOM section of the object browser diff --git a/src/ConnectorAPI/Test/TestExportXAOMem.py b/src/ConnectorAPI/Test/TestExportXAOMem.py index daf2b21cc..342a0fa91 100644 --- a/src/ConnectorAPI/Test/TestExportXAOMem.py +++ b/src/ConnectorAPI/Test/TestExportXAOMem.py @@ -28,7 +28,7 @@ import salome salome.standalone() -salome.salome_init(1) +salome.salome_init(embedded=True) import os import math diff --git a/src/ConnectorAPI/Test/TestImportSTEP.py b/src/ConnectorAPI/Test/TestImportSTEP.py index c66695ce7..b7f49b85f 100644 --- a/src/ConnectorAPI/Test/TestImportSTEP.py +++ b/src/ConnectorAPI/Test/TestImportSTEP.py @@ -42,7 +42,7 @@ from GeomAlgoAPI import * __updated__ = "2015-05-22" salome.standalone() -salome.salome_init(1) +salome.salome_init(embedded=True) #========================================================================= # Help functions diff --git a/src/ConnectorAPI/Test/TestImportSTL.py b/src/ConnectorAPI/Test/TestImportSTL.py index b8e769312..2acdfd46f 100644 --- a/src/ConnectorAPI/Test/TestImportSTL.py +++ b/src/ConnectorAPI/Test/TestImportSTL.py @@ -22,7 +22,7 @@ from salome.shaper import model import salome salome.standalone() -salome.salome_init(1) +salome.salome_init(embedded=True) data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") diff --git a/src/ConnectorAPI/Test/TestImportXAOMem.py b/src/ConnectorAPI/Test/TestImportXAOMem.py index 76f4646c8..6756357e2 100644 --- a/src/ConnectorAPI/Test/TestImportXAOMem.py +++ b/src/ConnectorAPI/Test/TestImportXAOMem.py @@ -28,7 +28,7 @@ import salome salome.standalone() -salome.salome_init(1) +salome.salome_init(embedded=True) import os import math diff --git a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py index 029d76bba..5f5076b30 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py @@ -119,7 +119,7 @@ class ExportFeature(ModelAPI.ModelAPI_Feature): ## List of objects created in the old geom for later use self.geomObjects = [] ## geomBuilder tool - salome.salome_init(1) + salome.salome_init(embedded=True) self.geompy = geomBuilder.New() self.exportViaXAO() diff --git a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py index 00e523534..4933bd05d 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py @@ -71,7 +71,7 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature): EventsAPI.Events_InfoMessage("PublishToStudy", "Not all PartSet parts are up-to-date, nothing is published. Please, make the last PartSet feature as current.", self).send() return # find a shaper-study component - salome.salome_init(1) + salome.salome_init(embedded=True) aComponent = SHAPERSTUDY_utils.findOrCreateComponent() anEngine = SHAPERSTUDY_utils.getEngine() # collect all processed internal entries to break the link of unprocessed later diff --git a/src/ExchangePlugin/Test/TestImportImage_1.py b/src/ExchangePlugin/Test/TestImportImage_1.py index 01a73e561..e4e7558a3 100755 --- a/src/ExchangePlugin/Test/TestImportImage_1.py +++ b/src/ExchangePlugin/Test/TestImportImage_1.py @@ -24,7 +24,7 @@ from PyQt5.Qt import QApplication import salome salome.salome_init_without_session() -salome.salome_init(1) +salome.salome_init(embedded=True) if QApplication.instance() is None: app = QApplication([]) diff --git a/src/ExchangePlugin/Test/TestImportImage_2.py b/src/ExchangePlugin/Test/TestImportImage_2.py index 00420480e..58be5429a 100755 --- a/src/ExchangePlugin/Test/TestImportImage_2.py +++ b/src/ExchangePlugin/Test/TestImportImage_2.py @@ -24,7 +24,7 @@ from PyQt5.Qt import QApplication import salome salome.salome_init_without_session() -salome.salome_init(1) +salome.salome_init(embedded=True) if QApplication.instance() is None: app = QApplication([]) diff --git a/src/ExchangePlugin/Test/TestImportImage_3.py b/src/ExchangePlugin/Test/TestImportImage_3.py index 4e7f0c312..82b1a8974 100755 --- a/src/ExchangePlugin/Test/TestImportImage_3.py +++ b/src/ExchangePlugin/Test/TestImportImage_3.py @@ -24,7 +24,7 @@ from PyQt5.Qt import QApplication import salome salome.salome_init_without_session() -salome.salome_init(1) +salome.salome_init(embedded=True) if QApplication.instance() is None: app = QApplication([])