@@ -12,47 +12,55 @@ REM (see LICENSE file for more details)
1212REM ======================================================
1313
1414:GetScriptPath
15- set _tmp_ = %~dp0
16- if %_tmp_:~-1 % == \ set %1 =%_tmp_:~0 ,-1 %
17- EXIT /B 0
15+ set _tmp_ = %~dp0
16+ if %_tmp_:~-1 % == \ set %1 =%_tmp_:~0 ,-1 %
17+ EXIT /B 0
1818
1919:GetLibName
20- pushd %~dp0 ..
21- for %%I in (.) do set %1 =%%~nxI
22- popd
23- goto :eof
20+ pushd %~dp0 ..
21+ for %%I in (.) do set %1 =%%~nxI
22+ popd
23+ goto :eof
2424
2525:SetPythonPath
26- set PYTHONPATH = %~dp0 ..
27- goto :eof
26+ set PYTHONPATH = %~dp0 ..
27+ goto :eof
2828
29- :UseWinPython
30- if defined WINPYDIRBASE (
31- call %WINPYDIRBASE% \scripts\env.bat
32- call :ShowTitle " Using WinPython from %WINPYDIRBASE% "
33- ) else (
34- echo Warning: WINPYDIRBASE environment variable is not defined, switching to system Python
35- echo ********
36- echo (if nothing happens, that's probably because Python is not installed either:
37- echo please set the WINPYDIRBASE variable to select WinPython directory, or install Python)
29+ :SetEnvVars
30+ cd %~dp0 ..
31+ for /F " tokens=*" %%A in (.env) do (
32+ set %%A
3833 )
39- goto :eof
34+ set RLSPTH = %~dp0 ..\%CI_DST% -%CI_VER% _release\
35+ goto :eof
36+
37+ :UseWinPython
38+ if defined WINPYDIRBASE (
39+ call %WINPYDIRBASE% \scripts\env.bat
40+ call :ShowTitle " Using WinPython from %WINPYDIRBASE% "
41+ ) else (
42+ echo Warning: WINPYDIRBASE environment variable is not defined, switching to system Python
43+ echo ********
44+ echo (if nothing happens, that's probably because Python is not installed either:
45+ echo please set the WINPYDIRBASE variable to select WinPython directory, or install Python)
46+ )
47+ goto :eof
4048
4149:ShowTitle
42- @ echo :
43- @ echo ========= %~1 =========
44- @ echo :
45- goto :eof
50+ @ echo :
51+ @ echo ========= %~1 =========
52+ @ echo :
53+ goto :eof
4654
4755:EndOfScript
48- @ echo :
49- @ echo **********************************************************************************
50- @ echo :
51- if not defined UNATTENDED (
52- @ echo End of script
53- pause
54- )
55- goto :eof
56+ @ echo :
57+ @ echo **********************************************************************************
58+ @ echo :
59+ if not defined UNATTENDED (
60+ @ echo End of script
61+ pause
62+ )
63+ goto :eof
5664
5765:Exit
58- exit /b
66+ exit /b
0 commit comments