1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make env-setup work on Python 3

This commit is contained in:
Daniel Hokka Zakrisson 2013-01-23 19:48:13 +01:00
parent b8d0638449
commit a117944d0f

View file

@ -10,7 +10,7 @@ else
fi
# 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; print os.path.realpath('$HACKING_DIR')"`
FULL_PATH=`python -c "import os; print(os.path.realpath('$HACKING_DIR'))"`
ANSIBLE_HOME=`dirname $FULL_PATH`
PREFIX_PYTHONPATH="$ANSIBLE_HOME/lib"