File: run_demo.sh

package info (click to toggle)
python-easy-ansi 0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 488 kB
  • sloc: python: 3,109; sh: 127; makefile: 2
file content (26 lines) | stat: -rwxr-xr-x 433 bytes parent folder | download
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
#!/bin/bash

# This script is used for running the demo programs

source ./config.sh

DEMO_FILE="${1}"

if [ $# -ne 1 ]
then
    echo "Pass in name of demo to run."
    exit 1
fi
if [ ! -f "${DEMOS_DIR}/${1}" ]
then
    echo "Demo file not found: ${1}"
    exit 1
fi

"${CONDA_BIN_DIR}/activate" "${CONDA_DEV_ENV}"
cd "${DEV_DIR}"
pip install -e .
cd "${DEMOS_DIR}"
echo ""
echo "----- Demo Starts Below -----"
python "${DEMO_FILE}"