86b0bce8cf
This patch adds the core panels (Cisco Dashboard and Firewalls), dev install script, basic documentation, and testing. There is a fairly large amount of extra "stuff" left in, due to the copy/paste nature of the setup. Specifically, the tests have a lot of the horizon test code in which is unecessary, but temporary with the aim of getting up and running quickly. Change-Id: I5fdce186df09e1168e8d52abfec17e0c20a64031 Partially-Implements: blueprint initial-setup
14 lines
506 B
Bash
Executable File
14 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
TOOLS_PATH=${TOOLS_PATH:-$(dirname $0)}
|
|
VENV_PATH=${VENV_PATH:-${TOOLS_PATH}}
|
|
VENV_DIR=${VENV_NAME:-/../.venv}
|
|
TOOLS=${TOOLS_PATH}
|
|
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
|
|
HORIZON_DIR=${TOOLS%/tools}
|
|
|
|
# This horrible mangling of the PYTHONPATH is required to get the
|
|
# babel-angular-gettext extractor to work. To fix this the extractor needs to
|
|
# be packaged on pypi and added to global requirements. That work is in progress.
|
|
export PYTHONPATH="$HORIZON_DIR"
|
|
source ${VENV}/bin/activate && "$@"
|