More `pecan shell documentation, and a fix for bpython` support.

This commit is contained in:
Ryan Petrello
2012-03-22 17:04:29 -04:00
parent e82e7b5789
commit 75a6aeab19
2 changed files with 10 additions and 6 deletions

View File

@@ -84,7 +84,14 @@ command::
>>> app.get('/')
<200 OK text/html body='<html>\n ...\n\n'/936>
Press ``Ctrl-D`` to exit the interactive shell (or ``Ctrl-Z`` on Windows).
Using an Alternative Shell
++++++++++++++++++++++++++
Pecan has support for the `IPython <http://ipython.org/>`_ and `bpython
<http://bpython-interpreter.org/>`_ alternative shells.
``pecan shell`` has optional support for the `IPython <http://ipython.org/>`_
and `bpython <http://bpython-interpreter.org/>`_ alternative shells, each of
which can be specified with the ``--shell`` flag (or its abbreviated alias,
``-s``), e.g.,
::
$ pecan shell --shell=ipython config.py
$ pecan shell -s bpython config.py

View File

@@ -74,10 +74,7 @@ class BPythonShell(object):
Embed an interactive bpython shell.
"""
try:
from bpython import embed
except ImportError:
pass
from bpython import embed
shell = embed(ns, ['-i'], banner)