Skip to content

Commit 9545c45

Browse files
committed
[OMCSessionZMQ] rename omhome => _omhome
1 parent 49c240d commit 9545c45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OMPython/OMCSession.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def __init__(self, timeout=10.00,
276276
if dockerExtraArgs is None:
277277
dockerExtraArgs = []
278278

279-
self.omhome = self._get_omhome(omhome=omhome)
279+
self._omhome = self._get_omhome(omhome=omhome)
280280

281281
self._omc_process = None
282282
self._omc_command = None
@@ -349,7 +349,7 @@ def _create_omc_log_file(self, suffix):
349349

350350
def _start_omc_process(self, timeout):
351351
if sys.platform == 'win32':
352-
omhome_bin = (self.omhome / "bin").as_posix()
352+
omhome_bin = (self._omhome / "bin").as_posix()
353353
my_env = os.environ.copy()
354354
my_env["PATH"] = omhome_bin + os.pathsep + my_env["PATH"]
355355
self._omc_process = subprocess.Popen(self._omc_command, stdout=self._omc_log_file,
@@ -484,7 +484,7 @@ def _get_omhome(self, omhome: str = None):
484484
raise OMCSessionException("Cannot find OpenModelica executable, please install from openmodelica.org")
485485

486486
def _get_omc_path(self) -> pathlib.Path:
487-
return self.omhome / "bin" / "omc"
487+
return self._omhome / "bin" / "omc"
488488

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

0 commit comments

Comments
 (0)