File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ def worker():
3535
3636def test_setParameters ():
3737 omc = OMPython .OMCSessionZMQ ()
38- model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
38+ model_path_str = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels"
39+ model_path = omc .omcpath (model_path_str )
3940 mod = OMPython .ModelicaSystem ()
4041 mod .model (
41- file = model_path + "BouncingBall.mo" ,
42+ file = model_path / "BouncingBall.mo" ,
4243 name = "BouncingBall" ,
4344 )
4445
@@ -69,10 +70,11 @@ def test_setParameters():
6970
7071def test_setSimulationOptions ():
7172 omc = OMPython .OMCSessionZMQ ()
72- model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
73+ model_path_str = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels"
74+ model_path = omc .omcpath (model_path_str )
7375 mod = OMPython .ModelicaSystem ()
7476 mod .model (
75- file = model_path + "BouncingBall.mo" ,
77+ file = model_path / "BouncingBall.mo" ,
7678 name = "BouncingBall" ,
7779 )
7880
You can’t perform that action at this time.
0 commit comments