Skip to content

Commit 3501b1e

Browse files
committed
Revert "[ModelicaSystem.buildModel] check if model executable exists"
This reverts commit 5e00610.
1 parent cd3bba8 commit 3501b1e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,6 @@ def getWorkDirectory(self) -> OMCPath:
433433
return self._work_dir
434434

435435
def buildModel(self, variableFilter: Optional[str] = None):
436-
"""
437-
Build the model executable.
438-
"""
439436
if variableFilter is not None:
440437
self._variable_filter = variableFilter
441438

@@ -447,11 +444,7 @@ def buildModel(self, variableFilter: Optional[str] = None):
447444
buildModelResult = self._requestApi("buildModel", self._model_name, properties=varFilter)
448445
logger.debug("OM model build result: %s", buildModelResult)
449446

450-
model_executable = self._getconn.omcpath(buildModelResult[0])
451-
if not model_executable.is_file():
452-
raise ModelicaSystemError(f"Missing model executable after buildModel(): {model_executable.as_posix()}")
453-
454-
xml_file = model_executable.parent / buildModelResult[1]
447+
xml_file = self._getconn.omcpath(buildModelResult[0]).parent / buildModelResult[1]
455448
self._xmlparse(xml_file=xml_file)
456449

457450
def sendExpression(self, expr: str, parsed: bool = True):

0 commit comments

Comments
 (0)