Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __del__(self):
break
# kill self._omc_process process if it is still running/exists
if self._omc_process is not None and self._omc_process.returncode is None:
print("OMC did not exit after being sent the quit() command; killing the process with pid=%s" % str(self._omc_process.pid))
logger.warning("OMC did not exit after being sent the quit() command; killing the process with pid=%s" % str(self._omc_process.pid))
if sys.platform == "win32":
self._omc_process.kill()
self._omc_process.wait()
Expand Down Expand Up @@ -801,7 +801,7 @@ def _run_cmd(self, cmd: list):
# set the process environment from the generated .bat file in windows which should have all the dependencies
batFilePath = os.path.join(self.tempdir, '{}.{}'.format(self.modelName, "bat")).replace("\\", "/")
if (not os.path.exists(batFilePath)):
print("Error: bat does not exist " + batFilePath)
ModelicaSystemError("Batch file (*.bat) does not exist " + batFilePath)

with open(batFilePath, 'r') as file:
for line in file:
Expand Down
Loading