hidconsole has to be run in unbuffered mode

This commit is contained in:
Daniel Pavel 2012-12-07 14:29:30 +02:00
parent 67db483b0b
commit 7ada4af31b
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
Z=`readlink -f "$0"`
LIB=`readlink -f $(dirname "$Z")/../lib`
export PYTHONPATH=$LIB
export PYTHONUNBUFFERED=yes
PYTHON=${PYTHON:-`which python python2 python3 | head -n 1`}
exec $PYTHON -m hidapi.hidconsole "$@"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python -u
import os
import sys