call install_onnx.sh with relative path (#1225)

* call install_onnx with relative path

* use caller path

* get abs path of current script

* process unicode char

* replace script name

* add suffix as part of match

* match only the end of path
This commit is contained in:
RandySheriffH 2019-06-18 13:28:09 -07:00 committed by GitHub
parent 2d0e5231da
commit a4148c85a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ fi
if [ "$INSTALLED_PYTHON_VERSION" = "3.4" ];then
echo "Python 3.5 and above is needed for running onnx tests!" 1>&2
else
source /tmp/scripts/install_onnx.sh $INSTALLED_PYTHON_VERSION
source ${0/%install_deps\.sh/install_onnx\.sh} $INSTALLED_PYTHON_VERSION
fi
#The last onnx version will be kept