Skip to content

Commit 02728a8

Browse files
committed
Fix _get_omc_path fails on Windows
... probably due to missing .exe suffix.
1 parent 1b94486 commit 02728a8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

OMPython/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,7 @@ def _get_omhome(self, omhome: str = None):
537537
raise ValueError("Cannot find OpenModelica executable, please install from openmodelica.org")
538538

539539
def _get_omc_path(self) -> pathlib.Path:
540-
omc = self.omhome / "bin" / "omc"
541-
if not omc.exists():
542-
raise FileNotFoundError(f"The OpenModelica compiler is missing in the System path ({omc}), please install it")
543-
return omc
540+
return self.omhome / "bin" / "omc"
544541

545542
def _connect_to_omc(self, timeout):
546543
self._omc_zeromq_uri = "file:///" + self._port_file

0 commit comments

Comments
 (0)