From 9e7293b54d4e079c853423b6ff9797cec75fea81 Mon Sep 17 00:00:00 2001
From: Thomas Faivre <thomas.faivre@6wind.com>
Date: Wed, 21 Jun 2017 15:54:27 +0200
Subject: [PATCH] run_scapy: allow arguments

Signed-off-by: Thomas Faivre <thomas.faivre@6wind.com>
---
 run_scapy     | 2 +-
 run_scapy.bat | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/run_scapy b/run_scapy
index 557f3243..edffcfe2 100755
--- a/run_scapy
+++ b/run_scapy
@@ -5,4 +5,4 @@ if python --version 2>&1 | grep -q '^Python 2'; then
 else
     PYTHON=python2
 fi
-PYTHONPATH=$DIR exec $PYTHON -m scapy.__init__
+PYTHONPATH=$DIR exec $PYTHON -m scapy.__init__ $@
diff --git a/run_scapy.bat b/run_scapy.bat
index ba077428..2372b798 100644
--- a/run_scapy.bat
+++ b/run_scapy.bat
@@ -1,6 +1,6 @@
 @echo off
 set PYTHONPATH=%cd% 
-python -m scapy.__init__
+python -m scapy.__init__ %*
 if errorlevel 1 (
    PAUSE
 )
-- 
GitLab