* usr/lib/byobu/include/constants:

- make sure we export this variable, so that we only need to
    do the expensive test once
This commit is contained in:
Dustin Kirkland 2014-02-12 14:28:17 -06:00
commit 0d046f92a1
2 changed files with 6 additions and 4 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (5.72) unreleased; urgency=low
* UNRELEASED
* usr/lib/byobu/include/constants:
- make sure we export this variable, so that we only need to
do the expensive test once
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 10 Feb 2014 15:38:26 -0600

View file

@ -56,11 +56,11 @@ $BYOBU_TEST ulimit >/dev/null 2>&1 && export BYOBU_ULIMIT="ulimit" || export BYO
# Find a suitable python interpreter, if undefined
if [ -z "$BYOBU_PYTHON" ]; then
if python3 -c "import snack" >/dev/null 2>&1; then
BYOBU_PYTHON="python3"
export BYOBU_PYTHON="python3"
elif python2 -c "import snack" >/dev/null 2>&1; then
BYOBU_PYTHON="python2"
export BYOBU_PYTHON="python2"
elif python -c "import snack" >/dev/null 2>&1; then
BYOBU_PYTHON="python"
export BYOBU_PYTHON="python"
fi
fi