From 7b500eaf5e315151a285d6139cc9272d305eac9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schm=C3=B6lder?= Date: Fri, 6 Dec 2024 08:09:18 +0100 Subject: [PATCH] Only delete files if not using DLL --- CADETProcess/simulator/cadetAdapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CADETProcess/simulator/cadetAdapter.py b/CADETProcess/simulator/cadetAdapter.py index e53092bd..044f90b0 100644 --- a/CADETProcess/simulator/cadetAdapter.py +++ b/CADETProcess/simulator/cadetAdapter.py @@ -235,7 +235,7 @@ def run(self, process, cadet=None, file_path=None): except TimeoutExpired: raise CADETProcessError('Simulator timed out') from None finally: - if file_path is None: + if not self.use_dll and file_path is None: os.remove(cadet.filename) if return_information.return_code != 0: