test: resolve symlinks in which result for capnp

This commit is contained in:
David Gumberg 2025-10-30 14:27:17 -07:00
parent 6f359695c3
commit 51093d6ae1

View File

@ -27,7 +27,7 @@ class IPCInterfaceTest(BitcoinTestFramework):
def load_capnp_modules(self):
if capnp_bin := shutil.which("capnp"):
# Add the system cap'nproto path so include/capnp/c++.capnp can be found.
capnp_dir = Path(capnp_bin).parent.parent / "include"
capnp_dir = Path(capnp_bin).resolve().parent.parent / "include"
else:
# If there is no system cap'nproto, the pycapnp module should have its own "bundled"
# includes at this location. If pycapnp was installed with bundled capnp,