-# Copyright (C) 2019-2022 CEA/DEN, EDF R&D
+# Copyright (C) 2019-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
model.exportPart(Part_1_doc, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
+
+model.removeTmpFile(filename)