Solaar/bin/hidconsole

11 lines
261 B
Bash
Executable File

#!/bin/sh
Z=`readlink -f "$0"`
LIB=`readlink -f $(dirname "$Z")/../lib`
export PYTHONPATH=$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 "$@"