diff --git a/python-bin/python3 b/python-bin/python3 index a29fdc63cf..111ec2d83a 100755 --- a/python-bin/python3 +++ b/python-bin/python3 @@ -2,6 +2,14 @@ DEPOT_TOOLS=$(dirname "$0")/.. +if [[ ! -f "$DEPOT_TOOLS/python3_bin_reldir.txt" ]]; then + cat >&2 <&2 + echo running gclient or update_depot_tools >&2 + exit /b 1 +) + +:Initialized for /f %%i in (%PARENT_DIR%\python3_bin_reldir.txt) do set PYTHON_BIN_ABSDIR=%PARENT_DIR%\%%i set PATH=%PYTHON_BIN_ABSDIR%;%PYTHON_BIN_ABSDIR%\Scripts;%PATH% -"%PYTHON_BIN_ABSDIR%\python3.exe" %* \ No newline at end of file +"%PYTHON_BIN_ABSDIR%\python3.exe" %*