Files
heroku-buildpack-python/bin/detect
T
Kenneth Reitz f5ca696f8b python2.7
2011-11-10 11:01:32 -08:00

8 lines
309 B
Bash
Executable File

#!/usr/bin/env bash
# bin/detect <build-dir>
BUILD_DIR=$1
[ -f $BUILD_DIR/requirements.txt ] || exit 1 # fail fast if no requirements.txt
# 'Python/Django' if there is a [mysite]/settings.py file present; otherwise 'Python'
ls $BUILD_DIR/**/settings.py &> /dev/null && echo Python/Django || echo 'Python2.7'