mirror of
https://github.com/geohot/qira
synced 2025-03-13 02:23:07 +03:00
14 lines
337 B
Bash
Executable File
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 $*
|