Mock realpath if it is not present
This commit is contained in:
parent
24176882ab
commit
450dbecb34
|
@ -29,6 +29,12 @@ if test "$TRAVIS" = true ; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if ! which realpath ; then
|
||||
realpath() {
|
||||
$PYTHON -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' "$1"
|
||||
}
|
||||
fi
|
||||
|
||||
export PYTHON="${PYTHON:=python}"
|
||||
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}`realpath .`"
|
||||
for script in tests/run_*_tests.sh ; do
|
||||
|
|
Loading…
Reference in New Issue