Skip to content

Commit

Permalink
Fixing error introduced in 6aace93 (#899)
Browse files Browse the repository at this point in the history
- That's why we need to test on Windows again
  • Loading branch information
AnHeuermann committed Dec 18, 2020
1 parent 6aace93 commit a692b7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/OMSimulatorPython/OMSimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def __init__(self, omslib=None, temp_directory=None):
dirname = os.path.dirname(__file__)
omslib = os.path.join(dirname, "@OMSIMULATORLIB_DIR_STRING@", "@OMSIMULATORLIB_STRING@")

if os.name == 'nt': # If on Windows
ddlDir = os.add_dll_directory(os.path.dirname(omslib))
if os.name == 'nt': # On Windows
dllDir = os.add_dll_directory(os.path.dirname(omslib))
self.obj=ctypes.CDLL(omslib)
if os.name == 'nt': # If on Windows
close(ddlDir)
if os.name == 'nt':
dllDir.close()

## oms_status_enu_t
self.status_ok = 0
Expand Down

0 comments on commit a692b7c

Please sign in to comment.