15 lines
340 B
Bash
Executable File
15 lines
340 B
Bash
Executable File
#!/bin/sh
|
|
ret=`python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'`
|
|
if [ $ret -eq 0 ]; then
|
|
#Retry python 2
|
|
ret=`python2 -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'`
|
|
if [ $ret -eq 0 ]; then
|
|
echo "Cannot find python2."
|
|
else
|
|
#Ok
|
|
python2 esptool.py $@
|
|
fi
|
|
else
|
|
#Ok
|
|
python esptool.py $@
|
|
fi |