Skip to content

Commit

Permalink
Changed Dll search meachanism with Python 3.8 (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Dec 18, 2020
1 parent 6616083 commit 6aace93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OMSimulatorPython/OMSimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +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))
self.obj=ctypes.CDLL(omslib)
if os.name == 'nt': # If on Windows
close(ddlDir)

## oms_status_enu_t
self.status_ok = 0
Expand Down

0 comments on commit 6aace93

Please sign in to comment.