Menu

[r31]: / BuildScript_1.8 / set-python-ver.cmd  Maximize  Restore  History

Download this file

12 lines (7 with data), 323 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
@IF DEFINED NOECHO echo off
echo ====== Set Python version environment variables version %1 ======
set PYTHONVER=%1
for /f "tokens=1,2 delims=/." %%a in ("%PYTHONVER%") do set PYTHONFILEVER=%%a%%b
set PYTHONDIR=C:\Python%PYTHONFILEVER%
IF NOT DEFINED PATHBASE set PATHBASE=%PATH%
PATH=%PATHBASE%;%PYTHONDIR%
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.