From 7381117bb82a0c6e6dd6ea74448247f1ea3cbe65 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Thu, 7 Mar 2013 23:11:06 -0500
Subject: [PATCH] working dir fix

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

diff --git a/bin/compile b/bin/compile
index 4ff2e315..51024d2f 100755
--- a/bin/compile
+++ b/bin/compile
@@ -124,7 +124,6 @@ if [ ! "$SKIP_INSTALL" ]; then
 
   # Record for future reference.
   echo $PYTHON_VERSION > .heroku/python-version
-  WORKING_DIR=$(pwd)
   FRESH_PYTHON=true
 
   hash -r
@@ -134,6 +133,8 @@ fi
 
 # If Pip isn't up to date:
 if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
+  WORKING_DIR=$(pwd)
+
   # Prepare it for the real world
   puts-step "Installing Distribute ($DISTRIBUTE_VERSION)"
   cd $ROOT_DIR/vendor/distribute-$DISTRIBUTE_VERSION/
-- 
GitLab