xref: /aosp_15_r20/external/scapy/run_scapy_py2.bat (revision 7dc08ffc4802948ccbc861daaf1e81c405c2c4bd)
1@echo off
2set PYTHONPATH=%cd%
3set PYTHONDONTWRITEBYTECODE=True
4if "%1"=="--nopause" (
5  set nopause="True"
6  python -m scapy.__init__
7) else (
8  set nopause="False"
9  python -m scapy.__init__ %*
10)
11if %errorlevel%==1 if NOT "%nopause%"=="True" (
12   PAUSE
13)
14