summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pecan/commands/shell.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pecan/commands/shell.py b/pecan/commands/shell.py
index 44d5c33..89fd06c 100644
--- a/pecan/commands/shell.py
+++ b/pecan/commands/shell.py
@@ -128,6 +128,12 @@ class ShellCommand(BaseCommand):
exec(
'from pecan import abort, conf, redirect, request, response'
) in locs
+ from pecan import abort, conf, redirect, request, response
+ locs['abort'] = abort
+ locs['conf'] = conf
+ locs['redirect'] = redirect
+ locs['request'] = request
+ locs['response'] = response
# prepare the banner
banner = ' The following objects are available:\n'