Skip to content

Commit

Permalink
use sys.platform to detect windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jornbr committed Dec 10, 2024
1 parent 9a91b44 commit 8c45548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyfabm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ def unload() -> None:

for lib in name2lib.values():
handle = lib._handle
if os.name == "nt":
if sys.platform == "win32":
import ctypes.wintypes

ctypes.windll.kernel32.FreeLibrary.argtypes = [ctypes.wintypes.HMODULE]
Expand Down

0 comments on commit 8c45548

Please sign in to comment.