summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-12-09 04:36:39 -0500
committerChris McDonough <chrism@plope.com>2011-12-09 04:36:39 -0500
commitdca45cea4e3d968b89dc62234f3d8d8392614da6 (patch)
tree2f15e50bd0b35a9d5d104923937c0d3522875332
parent773948a42423cc7185f36b8473576b4fcae1bcee (diff)
downloadpyramid-dca45cea4e3d968b89dc62234f3d8d8392614da6.tar.gz
pyramid-dca45cea4e3d968b89dc62234f3d8d8392614da6.tar.bz2
pyramid-dca45cea4e3d968b89dc62234f3d8d8392614da6.zip
fix bare python mentions
-rw-r--r--TODO.txt3
-rw-r--r--docs/narr/extending.rst4
-rw-r--r--docs/narr/i18n.rst8
3 files changed, 6 insertions, 9 deletions
diff --git a/TODO.txt b/TODO.txt
index 3db27899f..d682ec346 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -22,9 +22,6 @@ Must-Have
- Fix deployment recipes in cookbook (discourage proxying without changing
server).
-- Fix i18n and extending chapters to mention $venv/bin/python instead of bare
- "python".
-
- Review "pyramid.compat" API; trim unnecessary APIs from docs.
Nice-to-Have
diff --git a/docs/narr/extending.rst b/docs/narr/extending.rst
index 9c96248f2..c464203f0 100644
--- a/docs/narr/extending.rst
+++ b/docs/narr/extending.rst
@@ -200,8 +200,8 @@ like this:
overridden elements, such as templates and static assets as necessary.
- Install the new package into the same Python environment as the original
- application (e.g. ``python setup.py develop`` or ``python setup.py
- install``).
+ application (e.g. ``$myvenv/bin/python setup.py develop`` or
+ ``$myvenv/bin/python setup.py install``).
- Change the ``main`` function in the new package's ``__init__.py`` to include
the original :app:`Pyramid` application's configuration functions via
diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst
index c5e6a9062..e261f9a11 100644
--- a/docs/narr/i18n.rst
+++ b/docs/narr/i18n.rst
@@ -347,7 +347,7 @@ extract the messages:
$ cd /place/where/myapplication/setup.py/lives
$ mkdir -p myapplication/locale
- $ python setup.py extract_messages
+ $ $myvenv/bin/python setup.py extract_messages
The message catalog ``.pot`` template will end up in:
@@ -439,7 +439,7 @@ init_catalog`` command:
.. code-block:: text
$ cd /place/where/myapplication/setup.py/lives
- $ python setup.py init_catalog -l es
+ $ $myvenv/bin/python setup.py init_catalog -l es
By default, the message catalog ``.po`` file will end up in:
@@ -471,7 +471,7 @@ Then use the ``setup.py update_catalog`` command.
.. code-block:: text
$ cd /place/where/myapplication/setup.py/lives
- $ python setup.py update_catalog
+ $ $myvenv/bin/python setup.py update_catalog
.. index::
pair: compiling; message catalog
@@ -487,7 +487,7 @@ translations, compile ``.po`` files to ``.mo`` files:
.. code-block:: text
$ cd /place/where/myapplication/setup.py/lives
- $ python setup.py compile_catalog
+ $ $myvenv/bin/python setup.py compile_catalog
This will create a ``.mo`` file for each ``.po`` file in your
application. As long as the :term:`translation directory` in which