Commit 4d4d0b90 by Will Thames

readlink -f does not work on OS X. Replaced with a python solution

parent 6219fc49
......@@ -8,7 +8,9 @@ if [ -n "$BASH_SOURCE" ] ; then
else
HACKING_DIR="$PWD/hacking"
fi
FULL_PATH=`readlink -fn $HACKING_DIR`
# The below is an alternative to readlink -fn which doesn't exist on OS X
# Source: http://stackoverflow.com/a/1678636
FULL_PATH=`python -c "import os, sys; print os.path.realpath('$HACKING_DIR')"`
ANSIBLE_HOME=`dirname $FULL_PATH`
PREFIX_PYTHONPATH="$ANSIBLE_HOME/lib"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment