File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,11 @@ def worker():
5151
5252def test_setParameters ():
5353 omc = OMPython .OMCSessionZMQ ()
54- model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
54+ model_path_str = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels"
55+ model_path = omc .omcpath (model_path_str )
5556 mod = OMPython .ModelicaSystem ()
5657 mod .model (
57- file = model_path + "BouncingBall.mo" ,
58+ file = model_path / "BouncingBall.mo" ,
5859 name = "BouncingBall" ,
5960 )
6061
@@ -85,10 +86,11 @@ def test_setParameters():
8586
8687def test_setSimulationOptions ():
8788 omc = OMPython .OMCSessionZMQ ()
88- model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
89+ model_path_str = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels"
90+ model_path = omc .omcpath (model_path_str )
8991 mod = OMPython .ModelicaSystem ()
9092 mod .model (
91- file = model_path + "BouncingBall.mo" ,
93+ file = model_path / "BouncingBall.mo" ,
9294 name = "BouncingBall" ,
9395 )
9496
You can’t perform that action at this time.
0 commit comments