This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check whether script is executing in a VirtualEnv or Conda environment | |
if [ -z "$VIRTUAL_ENV" ] && [ -z "$CONDA_PREFIX" ] ; then | |
echo "VirtualEnv or Conda env is not activated" | |
exit -1 | |
fi | |
# Set the virtual environment path | |
if ! [ -z "$VIRTUAL_ENV" ] ; then | |
VENV_PATH=$VIRTUAL_ENV | |
elif ! [ -z "$CONDA_PREFIX" ] ; then |