mirror of
https://github.com/powerline/powerline.git
synced 2025-07-19 20:04:56 +02:00
Use proper $PYTHON in case of UCS2 build and non-bash script
This commit is contained in:
parent
4a834f38aa
commit
2fc0e8e520
@ -11,14 +11,18 @@ export LD_LIBRARY_PATH
|
|||||||
export USER
|
export USER
|
||||||
export HOME
|
export HOME
|
||||||
|
|
||||||
. tests/bot-ci/scripts/common/main.sh silent
|
if test -n "$USE_UCS2_PYTHON" ; then
|
||||||
|
POWERLINE_VIRTUALENV="cpython-ucs2-$UCS2_PYTHON_VARIANT"
|
||||||
if test -n "$USE_UCS2_PYTHON" && test -n "$BASH_VERSION" ; then
|
PYTHON="$HOME/.virtualenvs/$POWERLINE_VIRTUALENV/bin/python"
|
||||||
|
if test -n "$BASH_VERSION" ; then
|
||||||
set +e
|
set +e
|
||||||
. virtualenvwrapper.sh
|
. virtualenvwrapper.sh
|
||||||
workon cpython-ucs2-$UCS2_PYTHON_VARIANT
|
workon "$POWERLINE_VIRTUALENV"
|
||||||
set -e
|
set -e
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
. tests/bot-ci/scripts/common/main.sh silent
|
||||||
|
|
||||||
export USER HOME
|
export USER HOME
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user