#!/usr/bin/env bash

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

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


