Skip to content
Prev Previous commit
Next Next commit
use full path of the model
  • Loading branch information
arun3688 committed Nov 2, 2023
commit f647ac6b21989d7c88b76764cf4f29b3b7ce664a
6 changes: 2 additions & 4 deletions tests/test_ModelicaSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ def __del__(self):

def testModelicaSystemLoop(self):
def worker():
origDir = os.getcwd()
os.chdir(self.tmp)
m = OMPython.ModelicaSystem("M.mo", "M")
filePath = os.path.join(self.tmp,"M.mo").replace("\\", "/")
m = OMPython.ModelicaSystem(filePath, "M")
m.simulate()
m.convertMo2Fmu(fmuType="me")
os.chdir(origDir)
for _ in range(10):
worker()

Expand Down