From 134852328cfc8e5a4006714f3764c956c5b1598a Mon Sep 17 00:00:00 2001 From: Kartik Singh Date: Thu, 20 Jun 2024 14:19:39 -0700 Subject: [PATCH] Try add_dll_directory --- examples/libcalc/example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/libcalc/example.py b/examples/libcalc/example.py index 1541dd1f..c0db8b20 100644 --- a/examples/libcalc/example.py +++ b/examples/libcalc/example.py @@ -12,6 +12,7 @@ def test(x): print(x) return old(x) os.path.isfile = test +os.add_dll_directory(os.getcwd()) import libcalc def die(msg):