Skip to content

Commit bfb1153

Browse files
authored
Remove print (#253)
1 parent f6260b6 commit bfb1153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OMPython/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def __del__(self):
177177
break
178178
# kill self._omc_process process if it is still running/exists
179179
if self._omc_process is not None and self._omc_process.returncode is None:
180-
print("OMC did not exit after being sent the quit() command; killing the process with pid=%s" % str(self._omc_process.pid))
180+
logger.warning("OMC did not exit after being sent the quit() command; killing the process with pid=%s" % str(self._omc_process.pid))
181181
if sys.platform == "win32":
182182
self._omc_process.kill()
183183
self._omc_process.wait()
@@ -801,7 +801,7 @@ def _run_cmd(self, cmd: list):
801801
# set the process environment from the generated .bat file in windows which should have all the dependencies
802802
batFilePath = os.path.join(self.tempdir, '{}.{}'.format(self.modelName, "bat")).replace("\\", "/")
803803
if (not os.path.exists(batFilePath)):
804-
print("Error: bat does not exist " + batFilePath)
804+
ModelicaSystemError("Batch file (*.bat) does not exist " + batFilePath)
805805

806806
with open(batFilePath, 'r') as file:
807807
for line in file:

0 commit comments

Comments
 (0)