church_archive_script/Programs/vs-detect-python.bat

20 lines
329 B
Batchfile
Raw Permalink Normal View History

2023-11-29 16:12:35 +00:00
@echo off
IF EXIST "Python311.dll" (
ECHO Python 3.11 detected
GOTO end
)
IF EXIST "Python38.dll" (
ECHO Python 3.8 detected
ECHO Switching to 3.8 support...
COPY /Y "VSScriptPython38.dll" "VSScript.dll"
ECHO Done
GOTO end
)
ECHO Neither Python 3.11 nor Python 3.8 is supported
GOTO end
:end
pause