From 5a7d25a85ec3cf4f0becc5b1868df24f9ed4c69d Mon Sep 17 00:00:00 2001 From: Pierre LALET <pierre.lalet@cea.fr> Date: Mon, 26 Dec 2016 23:36:25 +0100 Subject: [PATCH] Fix Windows bat files to work with spaces in paths (@gpotter2) --- bin/UTscapy.bat | 2 +- bin/scapy.bat | 2 +- test/run_tests.bat | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/UTscapy.bat b/bin/UTscapy.bat index 8b665f70..ba66429c 100755 --- a/bin/UTscapy.bat +++ b/bin/UTscapy.bat @@ -1,4 +1,4 @@ @echo off REM Use Python to run the UTscapy script from the current directory, passing all parameters title UTscapy -python %~dp0\UTscapy %* +python "%~dp0\UTscapy %*" diff --git a/bin/scapy.bat b/bin/scapy.bat index e0f064c5..85817838 100755 --- a/bin/scapy.bat +++ b/bin/scapy.bat @@ -1,4 +1,4 @@ @echo off REM Use Python to run the Scapy script from the current directory, passing all parameters title scapy -python %~dp0\scapy %* +python "%~dp0\scapy %*" diff --git a/test/run_tests.bat b/test/run_tests.bat index f2d818bf..91206414 100644 --- a/test/run_tests.bat +++ b/test/run_tests.bat @@ -3,7 +3,7 @@ set MYDIR=%cd%\.. set PYTHONPATH=%MYDIR% if [%1]==[] ( SET date=%DATE% - python %MYDIR%\scapy\tools\UTscapy.py -t regression.uts -f html -o scapy_regression_test_%date:~6,4%_%date:~3,2%_%date:~0,2%.html + python "%MYDIR%\scapy\tools\UTscapy.py -t regression.uts -f html -o scapy_regression_test_%date:~6,4%_%date:~3,2%_%date:~0,2%.html" ) else ( - python %MYDIR%\scapy\tools\UTscapy.py %1 %2 %3 %4 %5 %6 %7 %8 %9 + python "%MYDIR%\scapy\tools\UTscapy.py %@" ) -- GitLab