Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ fi
CONFIGURE_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [[ "$PYTHON_EXE" == "" ]]; then
PYTHON_EXE=python
PYTHON_EXE=$(which python2 || true)
fi

if [[ "$PYTHON_EXE" == "" ]]; then
echo You should have Python2.7 installed to configure deltacode
exit_code=1
if [ $exit_code -ne 0 ]; then
echo "configure command failed with exit code ${exit_code}."
exit $exit_code
fi
fi

$PYTHON_EXE "$CONFIGURE_ROOT_DIR/etc/configure.py" $CFG_CMD_LINE_ARGS
Expand Down