diff --git a/ninja b/ninja index da4502b33..45f14e62f 100755 --- a/ninja +++ b/ninja @@ -5,4 +5,4 @@ # found in the LICENSE file. base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/python-bin/python3" "$base_dir/ninja.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/ninja.py" "$@" diff --git a/ninja.bat b/ninja.bat index 8394bd7b2..421e0a968 100644 --- a/ninja.bat +++ b/ninja.bat @@ -4,11 +4,9 @@ :: found in the LICENSE file. setlocal -set scriptdir=%~dp0 - :: Ensure that "depot_tools" is somewhere in PATH so this tool can be used :: standalone, but allow other PATH manipulations to take priority. -set PATH=%PATH%;%scriptdir% +set PATH=%PATH%;%~dp0 :: Defer control. -call %scriptdir%python-bin\python3.bat "%~dp0\ninja.py" %* +python3 "%~dp0\ninja.py" %*