Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportImage_1.py
index 76174f8fe4a1325bf53c6f8089fbcb26ffeb6653..715dda2d95e50a40599f9cec56dfdc9ee285ad0f 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2021  CEA/DEN, EDF R&D
+# Copyright (C) 2021-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
@@ -106,6 +106,8 @@ assert(model.checkPythonDump())
 
 # Close SALOME GUI
 import salome_utils
-import subprocess
-port = salome_utils.getPortNumber()
-proc = subprocess.Popen(["killSalomeWithPort.py", "{}".format(port)])
+import killSalomeWithPort
+
+port = salome_utils.getPortNumber(False)
+if port:
+  killSalomeWithPort.killMyPort(port)