#!/bin/sh

#srubio, 2016

LIB='VacuumController'
DS='VacuumController'
DSPATH=$(python -c "import imp;print(imp.find_module('$LIB')[1])")
if [ "" = "$(echo "$1$2$3" | grep "\?\|attach")" ] ; then
  screen -dm -S $DS-$1 python $DSPATH/$DS.py $1 $2
else
  python $DSPATH/$DS.py $1 $2
fi
