1
0
mirror of https://github.com/ansible/awx.git synced 2026-02-05 18:45:27 +01:00
Files
awx/tools/scripts/awx-python
2021-04-30 14:32:05 -04:00

12 lines
261 B
Bash
Executable File

#!/usr/bin/env bash
# Enable AWX 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 "$@"