- Index
- » Users
- » tjroamer
- » Profile
Posts
Posts
Yes, this approach will eliminate the necessity of deleting files in the code at the application level. Many thanks for the suggestion.
I'd like to develop a python script that needs to do:
1) Load a *.mo file
2) Extract the parameter settings in the model and save it in an external file
3) Close the model and exit
This script should process lots of *.mo files in different folders.
For 1), I figured out to do that by using ModelicaSystem(...) API. After calling this API, OpenModelica generated lots of intermediate files. I am wondering how to do the step 3), meaning close the model and remove all these intermediate files automatically.
Any suggestion would be much appreciated.
Thanks.
Kai
- Index
- » Users
- » tjroamer
- » Profile