Skip to content

Commit e79bc40

Browse files
committed
Fix _get_omc_path fails on Windows
... probably due to missing .exe suffix.
1 parent 077d266 commit e79bc40

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
@@ -125,10 +125,7 @@ def __init__(self, omhome: str = None):
125125
raise ValueError("Cannot find OpenModelica executable, please install from openmodelica.org")
126126

127127
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
128+
return self.omhome / "bin" / "omc"
132129

133130

134131
class OMCSessionBase(metaclass=abc.ABCMeta):

0 commit comments

Comments
 (0)