From 90c0efaca131e915eda216ba3234d09054551323 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Sat, 7 Jan 2017 00:10:45 +0200 Subject: [PATCH] Add scapy to pupysh search path --- pupy/pupysh.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pupy/pupysh.py b/pupy/pupysh.py index 2437fdbd..03f86932 100755 --- a/pupy/pupysh.py +++ b/pupy/pupysh.py @@ -29,6 +29,7 @@ import traceback import argparse import os import os.path +import sys import network.conf from pupylib import PupyServer @@ -39,6 +40,10 @@ from pupylib import __version__ from network.lib.igd import IGDClient, UPNPError +sys.path.append( + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'external', 'scapy') +) + def print_version(): print("Pupy - %s"%(__version__))