File: entry_script.sh

package info (click to toggle)
bmtk 1.1.1%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 204,040 kB
  • sloc: python: 37,064; javascript: 1,998; makefile: 42; sh: 33
file content (22 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e

export NEST_PYTHON_PREFIX="${NEST_INSTALL_DIR}/lib/${PYTHON_ENV}/site-packages"
export PYTHONPATH="${NEST_PYTHON_PREFIX}:${PYTHONPATH}"
export PATH="${NEST_INSTALL_DIR}/bin:${PATH}"

if [[ $1 = "nrnivmodl" ]]; then
    shift
    cd /home/shared/workspace/mechanisms
    nrnivmodl $@
elif [[ $1 = "python" ]]; then
    shift
    cd /home/shared/workspace
    python $@
elif [[ $1 = "jupyter" ]]; then
    shift
    jupyter notebook --allow-root --ip=* --port 8888 --no-browser --notebook-dir /home/shared --NotebookApp.token=""
else
    cd /home/shared/workspace
    python $@
fi