From 19f72dd255d63243c074b83c88eade8325b4e8d7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 23 Aug 2023 00:27:53 +0100 Subject: [PATCH] fetches correct path if using compiled binary --- src/nvda_voicemeeter/cdll.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nvda_voicemeeter/cdll.py b/src/nvda_voicemeeter/cdll.py index 0c9b37a..d5dffe5 100644 --- a/src/nvda_voicemeeter/cdll.py +++ b/src/nvda_voicemeeter/cdll.py @@ -4,6 +4,8 @@ from pathlib import Path bits = 64 if ct.sizeof(ct.c_voidp) == 8 else 32 controller_path = Path(__file__).parents[2].resolve() / "controllerClient" +if not controller_path.exists(): + controller_path = Path(__file__).parents[3].resolve() / "controllerClient" DLL_PATH = controller_path / f"x{64 if bits == 64 else 86}" / f"nvdaControllerClient{bits}.dll"