scapy/run_scapy_py3.bat

14 lines
241 B
Batchfile
Raw Normal View History

2017-10-03 18:28:54 +00:00
@echo off
set PYTHONPATH=%~dp0
2017-10-03 18:28:54 +00:00
set PYTHONDONTWRITEBYTECODE=True
if "%1"=="--nopause" (
set nopause="True"
2018-03-27 00:30:47 +00:00
python3 -m scapy
2017-10-03 18:28:54 +00:00
) else (
set nopause="False"
2018-03-27 00:30:47 +00:00
python3 -m scapy %*
2017-10-03 18:28:54 +00:00
)
if %errorlevel%==1 if NOT "%nopause%"=="True" (
PAUSE
)