Debian Codegraph @

test/integration/targets/collection_loader/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux
4
5 PLAYBOOK_DIR="${PWD}"
6
7 source ../collection/setup.sh
8
9 EXT=$( python -c 'import importlib.machinery as i; print(next(iter([s for s in i.all_suffixes() if s != ".py"])))' )
10 touch "temp_pythonpath/my_module/sub/foo${EXT}"
11
12 ANSIBLE_COLLECTIONS_PATH="${PWD}../../../" \
13 ANSIBLE_LOCALHOST_WARNING=false \
14 PYTHONPATH="./temp_pythonpath:${PYTHONPATH}" \
15 ansible-playbook "${PLAYBOOK_DIR}/main.yml" "$@"