summaryrefslogtreecommitdiff
path: root/hacking/env-setup.fish
diff options
context:
space:
mode:
authorMichael Salmon <michael@hahla.com>2014-08-12 12:09:20 -0700
committerMichael Salmon <michael@hahla.com>2014-08-12 12:09:20 -0700
commite827ec702e99c54fde7d946e90f070015cf62ede (patch)
tree90aadf59da9da26e555da90ae5939b1004dc4f17 /hacking/env-setup.fish
parentd1344ec85da3292b65177be302695b49636ef28b (diff)
downloadansible-e827ec702e99c54fde7d946e90f070015cf62ede.tar.gz
Fix issue #8578. Setting envvar in ""'s ensures the PYTHONPATH is set to
include the lib/ directory. Before - PYTHONPATH is empty.. ansible fails to run $ source hacking/env-setup.fish Appending PYTHONPATH Setting up Ansible to run out of checkout... PATH=/Volumes/opt/src/ansible/bin /usr/local/share/python3 /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin /usr/bin /sbin /usr/local/bin /Users/ms/bin/ PYTHONPATH= ANSIBLE_LIBRARY=/Volumes/opt/src/ansible/library ... Traceback (most recent call last): File "/Volumes/opt/src/ansible/bin/ansible", line 25, in <module> from ansible.runner import Runner ImportError: No module named ansible.runner After change - it's set.. ansible runs. source hacking/env-setup.fish Appending PYTHONPATH Setting up Ansible to run out of checkout... PATH=/Volumes/opt/src/ansible/bin /usr/local/share/python3 /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin /usr/bin /sbin /usr/local/bin /Users/ms/bin/ PYTHONPATH=/Volumes/opt/src/ansible/lib: ANSIBLE_LIBRARY=/Volumes/opt/src/ansible/library .... $ ansible Usage: ansible <host-pattern> [options]
Diffstat (limited to 'hacking/env-setup.fish')
-rw-r--r--hacking/env-setup.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/env-setup.fish b/hacking/env-setup.fish
index 1613baeb14..05fb60672d 100644
--- a/hacking/env-setup.fish
+++ b/hacking/env-setup.fish
@@ -16,7 +16,7 @@ else
case "$PREFIX_PYTHONPATH*"
case "*"
echo "Appending PYTHONPATH"
- set -gx PYTHONPATH $PREFIX_PYTHONPATH:$PYTHONPATH
+ set -gx PYTHONPATH "$PREFIX_PYTHONPATH:$PYTHONPATH"
end
end