-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
27 lines (23 loc) · 706 Bytes
/
Copy pathrun.sh
File metadata and controls
27 lines (23 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
set -e
# project root
cd "$(dirname "$0")"
if [ ! -d "data" ]; then
mkdir data
fi
if [ ! -f "data/gas_monitoring.db" ]; then
curl -L "https://techassessment.blob.core.windows.net/caie-nyp-batch4-assessment-data/gas_monitoring.db" -o "data/gas_monitoring.db"
fi
# pick python
if [ -x "./EGT309/Scripts/python.exe" ]; then
PY="./EGT309/Scripts/python.exe"
elif command -v python >/dev/null 2>&1; then
PY="python"
elif command -v python3 >/dev/null 2>&1; then
PY="python3"
else
echo "ERROR: python not found. If you're on Windows, create/activate venv in Git Bash or ensure Python is in PATH."
exit 127
fi
$PY -m pip install -r requirements.txt
$PY -m src.pipeline "$@"