Fix esptool.sh path
This commit is contained in:
parent
c470eade35
commit
8dc8b0eeee
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
BASEDIR=$(dirname $(readlink -f "$0"))
|
||||||
ret=`python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'`
|
ret=`python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'`
|
||||||
if [ $ret -eq 0 ]; then
|
if [ $ret -eq 0 ]; then
|
||||||
#Retry python 2
|
#Retry python 2
|
||||||
|
@ -7,9 +8,9 @@ if [ $ret -eq 0 ]; then
|
||||||
echo "Cannot find python2."
|
echo "Cannot find python2."
|
||||||
else
|
else
|
||||||
#Ok
|
#Ok
|
||||||
python2 esptool.py $@
|
python2 $BASEDIR/esptool.py $@
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
#Ok
|
#Ok
|
||||||
python esptool.py $@
|
python $BASEDIR/esptool.py $@
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue