11 lines
272 B
Bash
Executable File
11 lines
272 B
Bash
Executable File
#!/bin/sh
|
|
|
|
Z=`readlink -f "$0"`
|
|
APP=`readlink -f $(dirname "$Z")/../app`
|
|
LIB=`readlink -f $(dirname "$Z")/../lib`
|
|
export PYTHONPATH=$APP:$LIB
|
|
|
|
NICE=`which nice 2>/dev/null`
|
|
PYTHON=${PYTHON:-`which python python2 python3 | head -n 1`}
|
|
exec $NICE $PYTHON -m solaar_cli "$@"
|