diff --git a/bin/compile b/bin/compile index de80a94dd9896427cafcca03bfafd9f45d1ff1cd..9bad3a286b809168591bbe46a62afe113c8c07b6 100755 --- a/bin/compile +++ b/bin/compile @@ -103,11 +103,10 @@ if [ ! -f requirements.txt ]; then fi # Sticky runtimes. -if [ -f .heroku/python-version ]; then - DEFAULT_PYTHON_VERSION=$(cat .heroku/python-version) +if [ -f $CACHE_DIR/.heroku/python-version ]; then + DEFAULT_PYTHON_VERSION=$(cat $CACHE_DIR/.heroku/python-version) fi - # If no runtime given, assume default version. if [ ! -f runtime.txt ]; then puts-step "No runtime.txt provided; assuming $DEFAULT_PYTHON_VERSION."