File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import OMPython
22import shutil
33import os
4+ import pathlib
45
56
67def test_CauerLowPassAnalog ():
78 mod = OMPython .ModelicaSystem (modelName = "Modelica.Electrical.Analog.Examples.CauerLowPassAnalog" ,
89 lmodel = ["Modelica" ])
9- tmp = mod .getWorkDirectory ()
10+ tmp = pathlib . Path ( mod .getWorkDirectory () )
1011 try :
1112 fmu = mod .convertMo2Fmu (fileNamePrefix = "CauerLowPassAnalog" )
1213 assert os .path .exists (fmu )
@@ -16,7 +17,7 @@ def test_CauerLowPassAnalog():
1617
1718def test_DrumBoiler ():
1819 mod = OMPython .ModelicaSystem (modelName = "Modelica.Fluid.Examples.DrumBoiler.DrumBoiler" , lmodel = ["Modelica" ])
19- tmp = mod .getWorkDirectory ()
20+ tmp = pathlib . Path ( mod .getWorkDirectory () )
2021 try :
2122 fmu = mod .convertMo2Fmu (fileNamePrefix = "DrumBoiler" )
2223 assert os .path .exists (fmu )
You can’t perform that action at this time.
0 commit comments