From b80df48d37ef61ec06fc587eb5fe79bfc2a5309e Mon Sep 17 00:00:00 2001 From: Christophe de Carvalho Pereira Martins Date: Mon, 19 Nov 2018 17:29:48 +0100 Subject: [PATCH] move chat.py into examples directory --- chat.py => examples/chat/chat.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename chat.py => examples/chat/chat.py (97%) diff --git a/chat.py b/examples/chat/chat.py similarity index 97% rename from chat.py rename to examples/chat/chat.py index 54342a87..6fce80f4 100755 --- a/chat.py +++ b/examples/chat/chat.py @@ -1,13 +1,14 @@ #!/bin/env python3 -import asyncio import sys +from os.path import dirname, abspath +sys.path.append(dirname(dirname(dirname(abspath(__file__))))) + +import asyncio import click - from libp2p.libp2p import Libp2p from network.multiaddr import MultiAddr - # TODO: change once muxed_connection supports extracting protocol id from messages PROTOCOL_ID = '/echo/1.0.0'