b4fb6f7573
This patchset puts in open source the code initially made internally. This dashboard follows the new plugin architecture that Horizon introduced. DocImpact Implements: blueprint watcher-ui Change-Id: Ic8736b45ae5e111a817f64568ed0534c1521c84d
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 && "$@"
|