Skip to content

Commit

Permalink
revert path handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorrent committed Jun 9, 2024
1 parent 055d1ce commit df9f4e9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_utils/p2p_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import time
import uuid
from contextlib import asynccontextmanager, suppress
from pathlib import Path

# from pathlib import Path
from typing import NamedTuple

from multiaddr import Multiaddr, protocols
Expand All @@ -16,9 +17,13 @@

TIMEOUT_DURATION = 30 # seconds

hivemind_dir = Path(__file__).parent / "hivemind" / "hivemind_cli"
# hivemind_dir = Path(__file__).parent / "hivemind" / "hivemind_cli"

# P2PD_PATH = str(hivemind_dir / "p2pd")

from pkg_resources import resource_filename

P2PD_PATH = str(hivemind_dir / "p2pd")
P2PD_PATH = resource_filename("hivemind", "hivemind_cli/p2pd")


async def try_until_success(coro_func, timeout=TIMEOUT_DURATION):
Expand Down

0 comments on commit df9f4e9

Please sign in to comment.