anchor.diff:  )
   :FindPython.done
   if defined RETVAR set "%RETVAR%=%EXE%"
  +
   %RETURN%
   
   :#----------------------------------------------------------------------------#
  
positive.code: :#   2010-05-31 JFL Created this routine for Tcl.                             #
  :#   2017-01-13 JFL Adapted to Python, with an optional version.              #
  :#   2017-01-16 JFL Added argument %2=VARNAME.                                #
  :#                                                                            #
  :#----------------------------------------------------------------------------#
  
  :FindPython %1=Optional Python version. Ex: 27 or *. Default ""=* %2=VARNAME. Default=Display all
  %FUNCTION% EnableExtensions EnableDelayedExpansion
  
  :# Search in the list of drives, then in the possible \Python program directories.
  set "EXE="			&:# Executable pathname
  set "VER=%~1"			&:# Acceptable version suffix
  if not defined VER set "VER=*"
  set "ALL="
  if "%VER%"=="*" set "ALL=1"
  set "RETVAR=%~2"		&:# Variable where to store the result
  
  if defined RETVAR %UPVAR% %RETVAR%
  
  for %%d in (%SEARCHDRIVES%) do (
    for %%p in ("" "\Program Files" "\Program Files (x86)") do (
      for /d %%b in ("%%d:%%~p\Python%VER%" "%%d:%%~p\Python\Python%VER%" "%%d:%%~p\Microsoft Visual Studio\Shared\Python%VER%") do (
        %ECHO.D% :# Looking in %%b
        if exist "%%~b\python.exe" (
        	set "EXE=%%~b\python.exe"
        	if not defined RETVAR %ECHO% !EXE!
        )
      )
      if not defined ALL if defined EXE ( :# The one that remains is the latest version found
  
negative.code: :#                  Bug fix: Allow running as non-administrator, to be able   #
  :#                  to at least update local settings.                        #
  :#   2020-11-03 JFL Fixed the PS call when there's a ' in the script path.    #
  :#   2021-02-16 JFL Option -l displays the index and version of each instance.#
  :#                  Also search for python.exe in "%LOCALAPPDATA%\Programs".  #
  :#                  Options -s and -t can now specify an index, like "#3".    #
  :#                                                                            #
  :#          Copyright 2017 Hewlett Packard Enterprise Development LP         #
  :# Licensed under the Apache 2.0 license  www.apache.org/licenses/LICENSE-2.0 #
  :#----------------------------------------------------------------------------#
  
  setlocal EnableExtensions EnableDelayedExpansion
  set "VERSION=2021-02-16"
  set "SCRIPT=%~nx0"				&:# Script name
  set "SPATH=%~dp0" & set "SPATH=!SPATH:~0,-1!"	&:# Script path, without the trailing \
  set "SFULL=%~f0"				&:# Script full pathname
  