##// END OF EJS Templates
pytype: only try the hacky way of finding PYTHON if not provided...
Raphaël Gomès -
r52604:832a1aeb default
parent child Browse files
Show More
@@ -5,7 +5,7 b' set -u'
5
5
6 # Find the python3 setup that would run pytype
6 # Find the python3 setup that would run pytype
7 PYTYPE=`which pytype`
7 PYTYPE=`which pytype`
8 PYTHON3=`head -n1 ${PYTYPE} | sed -s 's/#!//'`
8 PYTHON3=${PYTHON:-`head -n1 ${PYTYPE} | sed -s 's/#!//'`}
9
9
10 # Existing stubs that pytype processes live here
10 # Existing stubs that pytype processes live here
11 TYPESHED=$(${PYTHON3} -c "import pytype; print(pytype.__path__[0])")/typeshed/stubs
11 TYPESHED=$(${PYTHON3} -c "import pytype; print(pytype.__path__[0])")/typeshed/stubs
General Comments 0
You need to be logged in to leave comments. Login now