You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used from command line to simulate an FMU on Linux, the created temp directory /tmp/tmpNNNNNNN is not removed on exit if an exception is thrown.
I looked at the code here: https://github.com/CATIA-Systems/FMPy/blob/main/fmpy/simulation.py#L757
and you should put that in a try/else block otherwise the cleanup will be skipped!
The text was updated successfully, but these errors were encountered:
adrpo
changed the title
Cleanup in /tmp/tmp* is not working
Cleanup in /tmp/tmp* is not working when an exception it thrown
Jun 13, 2024
When used from command line to simulate an FMU on Linux, the created temp directory /tmp/tmpNNNNNNN is not removed on exit if an exception is thrown.
I looked at the code here:
https://github.com/CATIA-Systems/FMPy/blob/main/fmpy/simulation.py#L757
and you should put that in a try/else block otherwise the cleanup will be skipped!
The text was updated successfully, but these errors were encountered: