qira/qira
2015-11-01 23:41:30 -05:00

14 lines
337 B
Bash
Executable File

#!/bin/bash -e
unamestr=$(uname)
if [[ "$unamestr" == 'Linux' ]]; then
DIR=$(dirname $(readlink -f $0))
elif [[ "$unamestr" == "Darwin" ]]; then
DIR=$(dirname $(readlink $(which $0)))
else
echo "Only Linux and Mac OS X are supported!"
exit
fi
source $DIR/venv/bin/activate
exec /usr/bin/env python2.7 $DIR/middleware/qira.py $*