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
5 changes: 3 additions & 2 deletions mikecore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@
eumDLL.libfilepath = mikebin

# Only while loading: the DLLs resolve their imports here and load nothing by
# name later.
# name later. sys.platform, not platform.system(), so type checkers know
# os.add_dll_directory exists here.
_dll_dir = (
os.add_dll_directory(mikebin)
if platform.system() == "Windows"
if sys.platform == "win32"
else contextlib.nullcontext()
)
with _dll_dir:
Expand Down
Loading