]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fixed incorrect call to salome.salome_init() mbs/bos24301_ob_refresh 39/head
authormbs <martin.bernhard@opencascade.com>
Fri, 26 Jan 2024 22:22:42 +0000 (22:22 +0000)
committermbs <martin.bernhard@opencascade.com>
Fri, 26 Jan 2024 22:22:42 +0000 (22:22 +0000)
16 files changed:
src/ConnectorAPI/Test/Test17917.py
src/ConnectorAPI/Test/Test2882.py
src/ConnectorAPI/Test/TestExportSTL.py
src/ConnectorAPI/Test/TestExportToGEOM.py
src/ConnectorAPI/Test/TestExportToGEOMPartSet.py
src/ConnectorAPI/Test/TestExportToGEOMWholeFeature.py
src/ConnectorAPI/Test/TestExportToGEOMWholeResult.py
src/ConnectorAPI/Test/TestExportXAOMem.py
src/ConnectorAPI/Test/TestImportSTEP.py
src/ConnectorAPI/Test/TestImportSTL.py
src/ConnectorAPI/Test/TestImportXAOMem.py
src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py
src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py
src/ExchangePlugin/Test/TestImportImage_1.py
src/ExchangePlugin/Test/TestImportImage_2.py
src/ExchangePlugin/Test/TestImportImage_3.py

index cc6ef8777bdbd7b604e62d0e2050ee7ace95e8ac..b6228a366f4b0a2e6844789f3d23a5b4b62c0c07 100644 (file)
@@ -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
index 23a7af041a4061c98e34fdda2953f067e945aadf..c07fd385ef85411b1f45f32ade3bc26fba11dc82 100644 (file)
@@ -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()
index 8fcb17c1af6fa3d3f6bb7e85206f4ad7cfd96210..39695139cf6ceb7b07885d7387bbd03e3c396795 100644 (file)
@@ -44,7 +44,7 @@ from GeomAlgoAPI import *
 
 __updated__ = "2015-05-22"
 
-salome.salome_init(1)
+salome.salome_init(embedded=True)
 geompy = geomBuilder.New()
 
 #=========================================================================
index 22d9f59ba8097b02beb56df7fe685ec772a84269..c80d36b3007bfb472cc573a383cf7c4bb19ba676 100644 (file)
@@ -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
index e5e6f12698f5d81aa657e7afa1d13c00496e14bb..01284fa00c4a2c55069166740078d5f3e442907b 100644 (file)
@@ -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
index 4d06b6b2f3269654a8d177c9617bbb565ff79208..60634e424417b9b3c29be8530589379e91d10b1d 100644 (file)
@@ -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
index af662c831dd7149d7d298c857f10c271fdb33ae6..b606d01ba794f8851dfbc6fc6686b8eab440ed94 100644 (file)
@@ -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
index daf2b21cc01e9e8fb596b2c40217cea0e43e7173..342a0fa9182bb2beac43777053cde83da2bc6d00 100644 (file)
@@ -28,7 +28,7 @@
 
 import salome
 salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
 
 import os
 import math
index c66695ce753db99f47026280faa8353f05ff9dde..b7f49b85f5d2ddebeb651342d1dd7013b05d57f1 100644 (file)
@@ -42,7 +42,7 @@ from GeomAlgoAPI import *
 __updated__ = "2015-05-22"
 
 salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
 
 #=========================================================================
 # Help functions
index b8e769312ede45f259a09f1f40ec5c321d63515d..2acdfd46f383e1f60d5911d9d02b817a9f75fb2d 100644 (file)
@@ -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")
 
index 76f4646c8e0b7c1007be1d4d98bac97956036eee..6756357e2f29d6059f68176b3fc25e44a904fceb 100644 (file)
@@ -28,7 +28,7 @@
 
 import salome
 salome.standalone()
-salome.salome_init(1)
+salome.salome_init(embedded=True)
 
 import os
 import math
index 029d76bba54c87725575b4e6a5be94b1f775a9e8..5f5076b300a7d0ae79ba0a08cda77be1b41d65b3 100644 (file)
@@ -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()
index 00e5235349a0ff6c9a39ffcdf685e3a63edbabb6..4933bd05dac0dfe33cfb9405dfae86902838dc80 100644 (file)
@@ -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
index 01a73e561b1204247c940eebc7bc4bd268ccc3ff..e4e7558a37522f3e9187c076ddc8e25ae4044e3b 100755 (executable)
@@ -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([])
 
index 00420480e6094fd0704f998161ae68cdafe79375..58be5429a14f99cfe8ff7d24d3b4aafcb435c206 100755 (executable)
@@ -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([])
 
index 4e7f0c3121537ad87ede40b8063fbbc562c65425..82b1a89742f92b8755b9e5eb109806aa45b5d367 100755 (executable)
@@ -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([])