Skip to content

Commit

Permalink
Delete OpenModelicaScriptingAPI.tmp.mo after use (#11510)
Browse files Browse the repository at this point in the history
FIXME: `compareFilesAndMove` should remove the .tmp.mo file but for some reason it doesn't, so we delete it explicitly
  • Loading branch information
phannebohm committed Nov 7, 2023
1 parent c944281 commit f075b4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OMCompiler/Compiler/Script/OpenModelicaScriptingAPI.mos
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if bool then
bool := loadFile("OpenModelicaScriptingAPI.tmp.mo");
if bool then
bool := OpenModelica.Scripting.compareFilesAndMove("OpenModelicaScriptingAPI.tmp.mo", "OpenModelicaScriptingAPI.mo");
OpenModelica.Scripting.deleteFile("OpenModelicaScriptingAPI.tmp.mo");
else
exit(1);
end if;
Expand Down

0 comments on commit f075b4e

Please sign in to comment.