mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
20 lines
526 B
Bash
Executable file
20 lines
526 B
Bash
Executable file
#!/bin/bash
|
|
# usage: source ./hacking/env-setup
|
|
# modifies environment for running Ansible from checkout
|
|
|
|
PREFIX_PYTHONPATH="$PWD/lib"
|
|
PREFIX_PATH="$PWD/bin"
|
|
PREFIX_MANPATH="$PWD/docs/man"
|
|
|
|
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
|
export PATH=$PREFIX_PATH:$PATH
|
|
export ANSIBLE_LIBRARY="$PWD/library"
|
|
export MANPATH=$PREFIX_MANPATH:$MANPATH
|
|
|
|
echo "PATH=$PATH"
|
|
echo "PYTHONPATH=$PYTHONPATH"
|
|
echo "ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY"
|
|
echo "MANPATH=$MANPATH"
|
|
|
|
echo "Reminder: specify your host file with -i"
|
|
echo "Done."
|