Skip to content

Commit

Permalink
Add add_dll_directory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-s committed Dec 16, 2024
1 parent 2671c29 commit 22b08cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/libcalc/example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import platform

# Python has trouble finding some dependent DLLs in the Windows CI
# environment, so we register their directories directly
if platform.system() == 'Windows':
os.add_dll_directory(os.environ.get('LIBSBCL_PATH'))
os.add_dll_directory(os.environ.get('MINGW64_PATH'))
Expand Down
2 changes: 2 additions & 0 deletions examples/libcalc/exhaust_heap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import platform

# Python has trouble finding some dependent DLLs in the Windows CI
# environment, so we register their directories directly
if platform.system() == 'Windows':
os.add_dll_directory(os.environ.get('LIBSBCL_PATH'))
os.add_dll_directory(os.environ.get('MINGW64_PATH'))
Expand Down

0 comments on commit 22b08cf

Please sign in to comment.