2012-03-18 16:28:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# usage: source ./hacking/env-setup
|
|
|
|
# modifies environment for running Ansible from checkout
|
2012-03-05 18:47:01 +00:00
|
|
|
|
2012-03-18 16:28:22 +00:00
|
|
|
PREFIX_PYTHONPATH="$PWD/lib"
|
|
|
|
PREFIX_PATH="$PWD/bin"
|
2012-03-05 21:06:02 +00:00
|
|
|
|
2012-03-18 16:28:22 +00:00
|
|
|
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
2012-03-05 18:47:01 +00:00
|
|
|
export PATH=$PREFIX_PATH:$PATH
|
2012-03-18 16:28:22 +00:00
|
|
|
export ANSIBLE_LIBRARY="$PWD/library"
|
2012-03-05 21:06:02 +00:00
|
|
|
|
2012-03-18 16:28:22 +00:00
|
|
|
echo "PATH=$PATH"
|
|
|
|
echo "PYTHONPATH=$PYTHONPATH"
|
|
|
|
echo "ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY"
|
2012-03-05 21:06:02 +00:00
|
|
|
|
2012-03-18 16:28:22 +00:00
|
|
|
echo "reminder: specify your host file with -i"
|
|
|
|
echo "done."
|