mirror of https://github.com/n1nj4sec/pupy.git
Add scapy to pupysh search path
This commit is contained in:
parent
1a3ad7bb60
commit
90c0efaca1
|
@ -29,6 +29,7 @@ import traceback
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
import sys
|
||||||
import network.conf
|
import network.conf
|
||||||
|
|
||||||
from pupylib import PupyServer
|
from pupylib import PupyServer
|
||||||
|
@ -39,6 +40,10 @@ from pupylib import __version__
|
||||||
|
|
||||||
from network.lib.igd import IGDClient, UPNPError
|
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():
|
def print_version():
|
||||||
print("Pupy - %s"%(__version__))
|
print("Pupy - %s"%(__version__))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue