Salome HOME
updated copyright message
[modules/shaper.git] / src / ConnectorAPI / Test / Test17917.py
index 9dca4aed2a83ef8c3142b6f9a1dd9ad764ed6d6d..35816472e0b655c9894e22c68733e087fdbaca60 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+import salome
+salome.standalone()
+salome.salome_init(1)
+
 from SketchAPI import *
 from salome.shaper import model
 from ModelAPI import *
@@ -44,13 +48,11 @@ model.exportToGEOM(partSet)
 model.end()
 
 # check what is exported to GEOM
-import salome
 from salome.geom import geomBuilder
 
 import os
 import tempfile
 
-salome.salome_init(1)
 aComp = salome.myStudy.FindComponent("GEOM")
 iterator = salome.myStudy.NewChildIterator(aComp)
 aComponents = []