Permalink
Browse files

debug: now show available variables

  • Loading branch information...
1 parent 43cb617 commit b08b08880629badeec74bfd02b1a022885f19f66 @fdev31 committed Apr 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 drink/__init__.py
View
@@ -872,7 +872,8 @@ def inp(txt):
import code
import drink
with db as root:
- code.interact('Drink developper shell !', local={'db': root, 'drink': drink})
+ l = {'db': root, 'drink': drink}
+ code.interact('Shell variables: %s'%', '.join(l.keys()), local=l)
from beaker.middleware import SessionMiddleware

0 comments on commit b08b088

Please sign in to comment.