summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-08-15 19:06:04 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-08-15 19:06:04 +0200
commita8b8f15d9aa3a9b311c7618e90b0b10234d78bc6 (patch)
tree84f0efd575a63c46f270f8b872ca50feb0b9db18
parent73b8aa58d569c089de37c02b6f32feaddd61cdf4 (diff)
downloadwatch-bz-a8b8f15d9aa3a9b311c7618e90b0b10234d78bc6.tar.gz
watch-bz-a8b8f15d9aa3a9b311c7618e90b0b10234d78bc6.tar.xz
watch-bz-a8b8f15d9aa3a9b311c7618e90b0b10234d78bc6.zip
Force tilde expansion prior to setting PYTHONPATH
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xwatch-bz3
1 files changed, 2 insertions, 1 deletions
diff --git a/watch-bz b/watch-bz
index d098c5b..a7c177c 100755
--- a/watch-bz
+++ b/watch-bz
@@ -64,7 +64,8 @@ if [ -z "$BUGZILLA" ] || [ -n "${BUGZILLA_ROOT}" ]; then
# BUGZILLA_ROOT (path to local repo) should rather be set in ~/.watchbzrc
BUGZILLA="${BUGZILLA_ROOT}/bin/bugzilla"
PYTHONPATH=${PYTHONPATH:+:${PYTHONPATH}}
- export PYTHONPATH="${BUGZILLA_ROOT}${PYTHONPATH}"
+ # force tilde expansion
+ eval export PYTHONPATH="${BUGZILLA_ROOT}${PYTHONPATH}"
fi
# hardcoded for now (note the SEP - OUTPUT_FMT relationship)