1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-28 19:25:40 +03:00
awx/tools/scripts/awx-python
2019-01-15 14:09:05 -05:00

19 lines
469 B
Bash
Executable File

#!/bin/bash
# Enable needed Software Collections, if installed
for scl in rh-python36; do
if [ -f /etc/scl/prefixes/$scl ]; then
if [ -f `cat /etc/scl/prefixes/$scl`/$scl/enable ]; then
. `cat /etc/scl/prefixes/$scl`/$scl/enable
fi
fi
done
# Enable Tower virtualenv
if [ -f /var/lib/awx/venv/awx/bin/activate ]; then
. /var/lib/awx/venv/awx/bin/activate
fi
# Run the requested Python command, using the interpreter from the path
exec python "$@"