Add scapy to pupysh search path

This commit is contained in:
Oleksii Shevchuk 2017-01-07 00:10:45 +02:00
parent 1a3ad7bb60
commit 90c0efaca1
1 changed files with 5 additions and 0 deletions

View File

@ -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__))