diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-01 16:09:24 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-01 16:09:24 +0100 |
commit | 2cda59ba1db40d83a8a774061d769a0cebac4ae6 (patch) | |
tree | 8fe0403aae5d18394462363a3cf4c34a233c4cb7 | |
parent | 4599afe6f4f2cee4750b60357d7c9a733418f7e5 (diff) | |
download | firehose-2cda59ba1db40d83a8a774061d769a0cebac4ae6.tar.gz |
Fix always including current directory in python module search path
The purpose of doing ${PYTHONPATH+:$PYTHONPATH} rather than just interpolating
in :$PYTHONPATH, is to only include the : separator if PYTHONPATH was set.
Adding : at the end then means that we unconditionally add an empty component,
which is interpreted as the current directory.
Change-Id: Id8e4dd625e094a6e34a1f41180246c997f0f515f
-rwxr-xr-x | firehose.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firehose.sh b/firehose.sh index 1003141..b6d1e58 100755 --- a/firehose.sh +++ b/firehose.sh @@ -14,7 +14,7 @@ MORPH_PLUGIN_PATH="/usr/lib/python2.7/site-packages/firehose-0.1-py2.7.egg/fireh export MORPH_PLUGIN_PATH -PYTHONPATH="${BASE}${PYTHONPATH:+:${PYTHONPATH}}:" +PYTHONPATH="${BASE}${PYTHONPATH:+:${PYTHONPATH}}" export PYTHONPATH |