Skip to content

Commit fc0d20b

Browse files
committed
[OMCProcess*] do not unlink temporary files
1 parent fc18547 commit fc0d20b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def _omc_port_get(self) -> str:
577577
# Read the port file
578578
with open(file=omc_file_port, mode='r', encoding="utf-8") as f_p:
579579
port = f_p.readline()
580-
omc_file_port.unlink()
580+
break
581581

582582
if port is not None:
583583
break
@@ -802,10 +802,6 @@ def _omc_docker_start(self) -> Tuple[subprocess.Popen, DummyPopen]:
802802
break
803803
time.sleep(self._timeout / 40.0)
804804

805-
# file no longer needed
806-
self._dockerCidFile.unlink()
807-
self._dockerCidFile = None
808-
809805
if self._dockerCid is None:
810806
logger.error(f"Docker did not start. Log-file says:\n{self.get_log()}")
811807
raise OMCSessionException(f"Docker did not start (timeout={self._timeout} might be too short "

0 commit comments

Comments
 (0)