We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b94486 commit 02728a8Copy full SHA for 02728a8
1 file changed
OMPython/__init__.py
@@ -537,10 +537,7 @@ def _get_omhome(self, omhome: str = None):
537
raise ValueError("Cannot find OpenModelica executable, please install from openmodelica.org")
538
539
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
+ return self.omhome / "bin" / "omc"
544
545
def _connect_to_omc(self, timeout):
546
self._omc_zeromq_uri = "file:///" + self._port_file
0 commit comments