X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestImportImage_1.py;h=715dda2d95e50a40599f9cec56dfdc9ee285ad0f;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=76174f8fe4a1325bf53c6f8089fbcb26ffeb6653;hpb=54c444b74ff9a608c7ddfdf9310dde0b0e7c90d6;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestImportImage_1.py b/src/ExchangePlugin/Test/TestImportImage_1.py index 76174f8fe..715dda2d9 100755 --- a/src/ExchangePlugin/Test/TestImportImage_1.py +++ b/src/ExchangePlugin/Test/TestImportImage_1.py @@ -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)