#!/usr/bin/env bash

export PYTHONPATH=$PYTHONPATH:`pwd`/../python

if [ $1 == "loop" ]; then
  DIR=..
  while :; do
    python -m unittest
    cd gui
    #python -m unittest -v
    cd ..
    echo "Awaiting changes in $DIR"
    inotifywait -r -e modify $DIR
  done
else
  set -e
  python -m unittest -v
fi


