diff --git a/tests/test_utils/p2p_daemon.py b/tests/test_utils/p2p_daemon.py index 07554f16f..735369740 100644 --- a/tests/test_utils/p2p_daemon.py +++ b/tests/test_utils/p2p_daemon.py @@ -15,8 +15,10 @@ from test_utils.networking import get_free_port TIMEOUT_DURATION = 30 # seconds -P2PD_PATH = resource_filename("hivemind", "hivemind_cli/p2pd") +with pkg_resources.path("hivemind", "hivemind_cli/p2pd") as p2pd_path: + P2PD_PATH = str(p2pd_path) + async def try_until_success(coro_func, timeout=TIMEOUT_DURATION): """