forked from openhome/ohNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgo
More file actions
executable file
·24 lines (24 loc) · 767 Bytes
/
go
File metadata and controls
executable file
·24 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
SCRIPT=`readlink -f $0`
PROJECT_ROOT=`dirname $SCRIPT`
# Force Python processes to be unbuffered. Avoids jumbled output
# during CI builds caused by buffering of stdout.
export PYTHONUNBUFFERED=x
if [ -z "$OHDEVTOOLS_ROOT" ]; then
export OHDEVTOOLS_ROOT=`readlink -f $PROJECT_ROOT/ohdevtools`
fi
if [ ! -e "$OHDEVTOOLS_ROOT" ]; then
export OHDEVTOOLS_ROOT=`readlink -f $PROJECT_ROOT/../ohdevtools`
fi
if [ ! -e "$OHDEVTOOLS_ROOT" ]; then
echo OHDEVTOOLS_ROOT not set.
echo Tried looking in $OHDEVTOOLS_ROOT.
echo Please set OHDEVTOOLS_ROOT to point to the location of the ohdevtools scripts.
exit 1
fi
if [ -z "$PYTHONPATH" ]; then
export PYTHONPATH=$OHDEVTOOLS_ROOT
else
export PYTHONPATH=$OHDEVTOOLS_ROOT:$PYTHONPATH
fi
python -u -m go $@