-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheli.sh
More file actions
executable file
·19 lines (16 loc) · 642 Bytes
/
Copy patheli.sh
File metadata and controls
executable file
·19 lines (16 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# ELI v2.0 — Linux launcher
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV="$SCRIPT_DIR/.venv"
export ELI_PROJECT_ROOT="$SCRIPT_DIR"
export ELI_DATA_DIR="${ELI_DATA_DIR:-$SCRIPT_DIR/artifacts}"
export ELI_CONFIG_DIR="${ELI_CONFIG_DIR:-$SCRIPT_DIR/config}"
export ELI_MODELS_DIR="${ELI_MODELS_DIR:-$SCRIPT_DIR/models}"
export ELI_CACHE_DIR="${ELI_CACHE_DIR:-$SCRIPT_DIR/cache}"
export PYTHONPATH="$SCRIPT_DIR${PYTHONPATH:+:$PYTHONPATH}"
if [ ! -d "$VENV" ]; then
echo "[ELI] Virtual environment not found. Run install.sh first."
exit 1
fi
exec "$VENV/bin/python" -m eli "$@"