From 2cda59ba1db40d83a8a774061d769a0cebac4ae6 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 1 Sep 2015 16:09:24 +0100 Subject: 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 --- firehose.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1