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 @@
# Zope configure script
# $Id$
# $Rev$
#####################################################################
# BEGIN EDITABLE PARAMETERS #
......@@ -74,7 +73,7 @@ get_python() {
IFS="$OLDIFS"
for EXECUTABLE in $EXENAMES; do
FULL="$DIR/$EXECUTABLE"
if [ -x "$FULL" ]; then
if [ -x "$FULL" -a ! -d "$FULL" ]; then
CMD="import string,sys;a=string.split(sys.version)[0]"
# Strip trailing + from version number
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