zaqar-ui/tools/with_venv.sh
Thai Tran a11cbc78b1 Zaqar-ui base project with empty queues panel
This commit adds the zaqar base and an empty queues panel.
Subsequent patches will add api and content to the queues panel.

Co-Authored-By: Fei Long Wang <flwang@catalyst.net.nz>
Co-Authored-By: Rob Cresswell <rcresswe@cisco.com>
Co-Authored-By: Thai Tran <tqtran@us.ibm.com>
Change-Id: I1f4873d1e36c677956534266de41d80a01c8cd9d
2016-01-14 11:04:32 -08:00

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 && "$@"