-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheli.bat
More file actions
19 lines (17 loc) · 700 Bytes
/
Copy patheli.bat
File metadata and controls
19 lines (17 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off
REM ELI v2.0 — Windows launcher
setlocal
set SCRIPT_DIR=%~dp0
set VENV=%SCRIPT_DIR%.venv
set ELI_PROJECT_ROOT=%SCRIPT_DIR%
if not defined ELI_DATA_DIR set ELI_DATA_DIR=%SCRIPT_DIR%artifacts
if not defined ELI_CONFIG_DIR set ELI_CONFIG_DIR=%SCRIPT_DIR%config
if not defined ELI_MODELS_DIR set ELI_MODELS_DIR=%SCRIPT_DIR%models
if not defined ELI_CACHE_DIR set ELI_CACHE_DIR=%SCRIPT_DIR%cache
if defined PYTHONPATH (set PYTHONPATH=%SCRIPT_DIR%;%PYTHONPATH%) else (set PYTHONPATH=%SCRIPT_DIR%)
if not exist "%VENV%\Scripts\python.exe" (
echo [ELI] Virtual environment not found. Run install.bat first.
pause
exit /b 1
)
"%VENV%\Scripts\python.exe" -m eli %*