Commit 033f88ac authored by Chris McDonough's avatar Chris McDonough

Don't treat directories named "python" on the path as interpreters.

parent 8f2000d7
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Zope configure script # Zope configure script
# $Id$ # $Id$
# $Rev$
##################################################################### #####################################################################
# BEGIN EDITABLE PARAMETERS # # BEGIN EDITABLE PARAMETERS #
...@@ -74,7 +73,7 @@ get_python() { ...@@ -74,7 +73,7 @@ get_python() {
IFS="$OLDIFS" IFS="$OLDIFS"
for EXECUTABLE in $EXENAMES; do for EXECUTABLE in $EXENAMES; do
FULL="$DIR/$EXECUTABLE" FULL="$DIR/$EXECUTABLE"
if [ -x "$FULL" ]; then if [ -x "$FULL" -a ! -d "$FULL" ]; then
CMD="import string,sys;a=string.split(sys.version)[0]" CMD="import string,sys;a=string.split(sys.version)[0]"
# Strip trailing + from version number # Strip trailing + from version number
CMD="$CMD;a=(a[-1]=='+')and(a[:-1])or(a);print a" CMD="$CMD;a=(a[-1]=='+')and(a[:-1])or(a);print a"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment