Skip to content

Commit

Permalink
fix pkg_resources again
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorrent committed Jun 7, 2024
1 parent 5cfe829 commit 917eda7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_utils/p2p_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 917eda7

Please sign in to comment.