fixes search path for binary

This commit is contained in:
onyx-and-iris 2023-08-23 19:47:59 +01:00
parent b6b4c5fd97
commit b45e85badd
2 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

@ -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"