Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
nimbus-configure needs to use the VE python
Browse files Browse the repository at this point in the history
in case there is a lower version python on the PATH
  • Loading branch information
labisso committed Nov 4, 2010
1 parent 83e085d commit 94ac461
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions home/bin/nimbus-configure
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ NIMBUS_PYSRC="$NIMBUS_WEBDIR/src/python"
PYTHONPATH="$NIMBUS_PYSRC:$NIMBUS_PYLIB:$PYTHONPATH"
export PYTHONPATH

source $NIMBUS_HOME/ve/bin/activate

# ------------------------------------------------------------------------------

# returns 0 if Python 2.4+
$PYTHON_EXE -c "import sys; sys.exit(sys.version_info < (2,4))"
# returns 0 if Python 2.5+
$PYTHON_EXE -c "import sys; sys.exit(sys.version_info < (2,5))"
if [ $? -ne 0 ]; then
echo "ERROR: Your system must have Python version 2.4 or later."
echo "ERROR: Your system must have Python version 2.5 or later."
exit 1
fi

Expand Down

0 comments on commit 94ac461

Please sign in to comment.