mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Compare commits
3 Commits
ef6d17eb28
...
384113e746
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
384113e746 | ||
|
|
77f3edfc8a | ||
|
|
a36c660bf2 |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user