x86_64-centos-awx/tools/scripts/awx-python
2021-03-02 20:53:43 +08:00

12 lines
263 B
Bash
Executable File

#!/usr/bin/env bash
# Enable Tower virtualenv
for venv_path in /var/lib/awx/venv/awx; do
if [ -f $venv_path/bin/activate ]; then
. $venv_path/bin/activate
fi
done
# Run the requested Python command, using the interpreter from the path
exec python3 "$@"