From b45e85baddf360ef2d830c5305f05df3337f4eb8 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 23 Aug 2023 19:47:59 +0100 Subject: [PATCH] fixes search path for binary --- __main__.py | 2 -- src/nvda_voicemeeter/cdll.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/__main__.py b/__main__.py index 4aaa90e..f1b7e30 100644 --- a/__main__.py +++ b/__main__.py @@ -6,8 +6,6 @@ import nvda_voicemeeter logging.basicConfig(level=logging.DEBUG) -nvda_voicemeeter.launch() - KIND_ID = "potato" with voicemeeterlib.api(KIND_ID) as vm: diff --git a/src/nvda_voicemeeter/cdll.py b/src/nvda_voicemeeter/cdll.py index 72efc47..cf273da 100644 --- a/src/nvda_voicemeeter/cdll.py +++ b/src/nvda_voicemeeter/cdll.py @@ -36,9 +36,10 @@ try: except FileNotFoundError as e: NVDA_PATH = "" + controller_path = Path(__file__).parents[2].resolve() / "controllerClient" if not controller_path.exists(): - controller_path = Path(__file__).parents[3].resolve() / "controllerClient" + controller_path = Path("controllerClient") DLL_PATH = controller_path / f"x{64 if bits == 64 else 86}" / f"nvdaControllerClient{bits}.dll"