We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 077d266 commit e79bc40Copy full SHA for e79bc40
1 file changed
OMPython/__init__.py
@@ -125,10 +125,7 @@ def __init__(self, omhome: str = None):
125
raise ValueError("Cannot find OpenModelica executable, please install from openmodelica.org")
126
127
def _get_omc_path(self) -> pathlib.Path:
128
- omc = self.omhome / "bin" / "omc"
129
- if not omc.exists():
130
- raise FileNotFoundError(f"The OpenModelica compiler is missing in the System path ({omc}), please install it")
131
- return omc
+ return self.omhome / "bin" / "omc"
132
133
134
class OMCSessionBase(metaclass=abc.ABCMeta):
0 commit comments