#!/bin/sh

Z=`dirname "$0"`
Z=`readlink -f "$Z/.."`

export PYTHONPATH="$Z/lib"
export PYTHONUNBUFFERED=yes

NICE=`which nice 2>/dev/null`
PYTHON=${PYTHON:-`which python python2 python3 | head -n 1`}
exec $NICE $PYTHON -m hidapi.hidconsole "$@"
