Skip to content

Commit 6d93486

Browse files
committed
Debug error
1 parent 1b7eec4 commit 6d93486

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/Test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
# test for:
1818
# * oldest supported version
1919
# * latest available Python version
20-
python-version: ['3.10', '3.14']
20+
python-version: ['3.10']
2121
# * Linux using ubuntu-latest
2222
# * Windows using windows-latest
23-
os: ['ubuntu-latest', 'windows-latest']
23+
os: ['windows-latest']
2424
# * OM stable - latest stable version
2525
# * OM nightly - latest nightly build
26-
omc-version: ['stable', 'nightly']
26+
omc-version: ['stable']
2727

2828
steps:
2929
- uses: actions/checkout@v6
@@ -67,6 +67,12 @@ jobs:
6767
- name: Check twine
6868
run: python -m twine check dist/*
6969

70+
- name: Disable Windows Error Reporting dialogs
71+
if: runner.os == 'Windows'
72+
run: |
73+
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v DontShowUI /t REG_DWORD /d 1 /f
74+
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
75+
7076
- name: Run pytest
7177
uses: pavelzw/pytest-action@v2
7278
with:

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def definition(self) -> ModelExecutionData:
272272
match = re.match(pattern=r"^SET PATH=([^%]*)", string=line, flags=re.IGNORECASE)
273273
if match:
274274
cmd_library_path = match.group(1).strip(';') # Remove any trailing semicolons
275+
logger.debug(f"ModelExecutionData::definition Set library path for model executable: {repr(cmd_library_path)}")
275276
my_env = os.environ.copy()
276277
my_env["PATH"] = cmd_library_path + os.pathsep + my_env["PATH"]
277278

OMPython/OMCSession.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ def run(self) -> int:
851851
"""
852852

853853
my_env = os.environ.copy()
854+
logger.debug(f"ModelExecutionData::run() - Set library path for model executable: {repr(self.cmd_library_path)}")
854855
if isinstance(self.cmd_library_path, str):
855856
my_env["PATH"] = self.cmd_library_path + os.pathsep + my_env["PATH"]
856857

0 commit comments

Comments
 (0)