anchor.diff:  REM Requires that an official Python installer in the 2.5 series is used and
   REM that Python is installed in the default location.
   
  -SETLOCAL
   REM TODO: Support versions 2.6 and 2.7
   SET PYTHONVER=25
   
  
positive.code: SET GAESUBDIR=Google\google_appengine
  IF EXIST "%PROGRAMFILES(x86)%" SET PROGRAMFILES=%PROGRAMFILES(x86)%
  SET GAE=%PROGRAMFILES%\%GAESUBDIR%
  IF NOT EXIST "%GAE%" ECHO Could not find App Engine in %GAE%
  IF NOT EXIST "%GAE%" GOTO end
  
  REM Google App Engine Variables
  SET GAEPATH="%GAE%;%GAE%\lib\yaml\lib;%GAE%\lib\webob"
  SET APPCFG="%GAE%\appcfg.py"
  SET DEV_APPSERVER="%GAE%\dev_appserver.py"
  
  REM Find Python
  SET PYTHON=C:\Python%PYTHONVER%\python.exe
  IF NOT EXIST %PYTHON% ECHO Could not find python.exe in C:\Python%PYTHONVER%\
  IF NOT EXIST %PYTHON% GOTO end
  SET PYTHON=%PYTHON% -Wignore
  SET PYTHONPATH=%GAEPATH%
  
  REM Temp file hack so that regedit only needs run once per TEMP folder cleanup
  IF EXIST %TEMP%\GAEPATHSET GOTO gaepath_set
  
  ECHO About to set PYTHONPATH in the registry to include Google App Engine
  PAUSE
  
  REM Need current directory for using regedit
  CD > %TEMP%\PWD
  SET /P PWD=<%TEMP%\PWD
  
  REM Add Google App Engine to PYTHONPATH
  IF EXIST "%PROGRAMFILES(x86)%" (
    REGEDIT /S "%PWD%\google_appengine64.reg"
  ) ELSE (
    REGEDIT /S "%PWD%\google_appengine.reg"
  )
  ECHO . > %TEMP%\GAEPATHSET
  
  :gaepath_set
  REM Arguments to perform actions
  IF "%1"=="key_test" %PYTHON% -m ndb.%1 %FLAGS%
  IF "%1"=="model_test" %PYTHON% -m ndb.%1 %FLAGS%
  
negative.code: REM TODO: Implement clean
  
  :end
  