scapy/run_scapy.bat

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
481 B
Batchfile
Raw Normal View History

@echo off
setlocal
set PYTHONPATH=%~dp0
2020-03-26 13:37:23 +00:00
REM shift will not work with %*
set "_args=%*"
IF "%PYTHON%" == "" set PYTHON=py
WHERE %PYTHON% >nul 2>&1
IF %ERRORLEVEL% NEQ 0 set PYTHON=
IF "%1" == "-3" (
if "%PYTHON%" == "py" (
set "PYTHON=py -3"
) else (
set PYTHON=python3
)
2020-03-26 13:37:23 +00:00
set "_args=%_args:~3%"
) else (
IF "%PYTHON%" == "" set PYTHON=python3
WHERE %PYTHON% >nul 2>&1
IF %ERRORLEVEL% NEQ 0 set PYTHON=python
2020-03-26 13:37:23 +00:00
)
%PYTHON% -m scapy %_args%
title Scapy - dead
PAUSE