Salome HOME
updated copyright message
[modules/shaper.git] / src / ConnectorAPI / Test / Test2882.py
index 640a91be2f96eb07ddae426272251e2ec99720f1..4b47dcacd0cf86b42d4b948f92ac9677dfba3381 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2021  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -21,6 +21,10 @@ from SketchAPI import *
 
 from salome.shaper import model
 
+import salome
+salome.standalone()
+salome.salome_init(1)
+
 model.begin()
 partSet = model.moduleDocument()
 Part_1 = model.addPart(partSet)
@@ -92,7 +96,6 @@ from salome.geom import geomBuilder
 import os
 import tempfile
 
-salome.salome_init(1)
 aComp = salome.myStudy.FindComponent("GEOM")
 iterator = salome.myStudy.NewChildIterator(aComp)
 aComponents = []