22 lines
534 B
Batchfile
22 lines
534 B
Batchfile
@echo off
|
|
setlocal EnableExtensions
|
|
REM Provision the Orisys Studio build environment (run once per machine).
|
|
REM Works from any cwd; forwards args to setup.ps1
|
|
REM Examples:
|
|
REM setup.bat
|
|
REM setup.bat -Force
|
|
REM setup.bat -Python C:\Python310\python.exe
|
|
REM setup.bat -AllowConda
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "PS1=%SCRIPT_DIR%setup.ps1"
|
|
|
|
if not exist "%PS1%" (
|
|
echo ERROR: setup.ps1 not found at "%PS1%"
|
|
exit /b 1
|
|
)
|
|
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%PS1%" %*
|
|
set "ERR=%ERRORLEVEL%"
|
|
exit /b %ERR%
|