From 4ff62b2b41da7697c0006c8933e8d50b0d4b4437 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Fri, 17 Jan 2014 17:06:54 -0800
Subject: [PATCH] sticky python versions bugfix

---
 bin/compile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/compile b/bin/compile
index de80a94d..9bad3a28 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."
-- 
GitLab