Skip to content
Browse files

Add current directory to the path of the secret_key.txt

  • Loading branch information...
1 parent 74889b7 commit 1a38df85b711fa6137edda7e9b86d60943db7db0 @olleolleolle olleolleolle committed Oct 24, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 mugshots.py
View
3 mugshots.py
@@ -3,9 +3,10 @@
import flaskext.redis
import datetime
import sys
+import os
app = Flask(__name__)
-with open('secret_key.txt') as f:
+with open('%s/secret_key.txt' % os.getcwd()) as f:
app.secret_key = f.read()
db = flaskext.redis.init_redis(app)

0 comments on commit 1a38df8

Please sign in to comment.
Something went wrong with that request. Please try again.