Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,12 @@ def fmiSimulatorVersion(name, command):

fmisimulatorversions = {}
fmisimulatorversion = None
if fmisimulator and any(not isFMPy(command) for (_, command) in fmisimulators):
# OMSimulator keeps flags such as --tempDir in this file and never rewrites
# one it cannot parse, which it then warns about in every simulation.
omsSettings = os.path.join(os.path.expanduser("~"), ".omsimulator", "settings.json")
if os.path.exists(omsSettings):
os.remove(omsSettings)
if fmisimulator:
for (name, command) in fmisimulators:
fmisimulatorversions[name] = fmiSimulatorVersion(name, command)
Expand Down
Loading