1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
nnposter
384113e746 Add locations used by the official Python installer 2025-10-19 02:33:20 +00:00
nnposter
77f3edfc8a Make sure that all locations are added, not just the last one 2025-10-19 02:29:36 +00:00
nnposter
a36c660bf2 Delay the expansion to avoid syntax issues. Closes #3177 2025-10-19 02:15:12 +00:00

View File

@@ -12,7 +12,7 @@ rem (excluding extension).
set PROG=%~dpn0.py
if not exist "%PROG%" (
echo Cannot run %PROG%
echo Cannot run !PROG!
echo because that file does not exist.
exit /B 1
)
@@ -22,8 +22,10 @@ set PATH=%NMAPDIR%\zenmap\bin;%PATH%
for /D %%P in ("%ProgramFiles%\Python 3.*",
"%ProgramFiles(x86)%\Python 3.*",
"%ProgramFiles%\Python3*",
"%ProgramFiles(x86)%\Python3*",
"%LocalAppData%\Programs\Python\Python3*"
) do set PATH=%PATH%;%%~P
) do set PATH=!PATH!;%%~P
for %%P in ( py.exe, python.exe) do (
set PYTHON=%%~f$PATH:P