Skip to content

Commit

Permalink
Only delete files if not using DLL
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Dec 12, 2024
1 parent ce627e2 commit 7b500ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CADETProcess/simulator/cadetAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b500ea

Please sign in to comment.