#!/bin/sh
# This script is used to activate the virtual environment
# It is generated by virtualenvwrapper
# Source:
#
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly

if [ -d "venv" ] ; then
    if [ -z "$VIRTUAL_ENV" ] ; then
        . venv/bin/activate
    else
        echo "Virtual environment already activated."
    fi
else
    echo "Creating virtual environment..."
    python3 -m venv venv
    sleep 1
    . venv/bin/activate
    pip install -r ./requirements.txt
    pip install --editable .
fi
