diff --git a/bin/compile b/bin/compile index de80a94..9bad3a2 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."