From b3e9ee1f5863cbe0d092f29e25cb4363d7398b64 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 19 Oct 2009 18:43:01 +0000 Subject: - ``paster bfgshell`` now supports IPython if it's available for import. Thanks to Daniel Holth for the initial patch. --- docs/narr/project.rst | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'docs/narr') diff --git a/docs/narr/project.rst b/docs/narr/project.rst index dc3385fcd..cb69fdc0e 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -200,7 +200,7 @@ the name ``main`` as a section name: .. code-block:: bash :linenos: - [chrism@vitaminf bfgshellenv]$ ../bin/paster bfgshell MyProject.ini main + [chrism@vitaminf bfgshellenv]$ ../bin/paster bfgshell --plugin=repoze.bfg MyProject.ini main Python 2.4.5 (#1, Aug 29 2008, 12:27:37) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin @@ -208,10 +208,18 @@ the name ``main`` as a section name: >>> root -If that command fails because ``paster`` claims it knows nothing about -the "bfgshell" command (this happens under certain conditions that are -not yet well-understood) try passing the flag ``--plugin=repoze.bfg`` -before the filename: +... note:: You *might* get away without passing + ``--plugin=repoze.bfg`` to the bfgshell command; the + ``--plugin=repoze.bfg`` option is required under conditions + that are not yet well-understood. + +If you have `IPython `_ +installed in the interpreter you use to invoke the ``paster`` command, +the ``bfgshell`` command will use an IPython interactive shell instead +of a standard Python interpreter shell. If you don't want this to +happen, even if you have IPython installed, you can pass the +``--disable-ipython`` flag to the ``bfgshell`` command to use a +standard Python interpreter shell unconditionally. .. code-block:: bash :linenos: -- cgit v1.2.3