summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-12-09 23:47:02 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-12-09 23:47:02 (GMT)
commit8b1cbd2b7cd8752462c68b17447446b54065691c (patch)
tree89fda316059f25e9157c882da6a1b53ac8749c87 /Doc/using
parent7de29687f22fff5c38ca252de4167e043b28e470 (diff)
downloadcpython-8b1cbd2b7cd8752462c68b17447446b54065691c.zip
cpython-8b1cbd2b7cd8752462c68b17447446b54065691c.tar.gz
cpython-8b1cbd2b7cd8752462c68b17447446b54065691c.tar.bz2
Issue #12602: Add missing cross-references to runpy and using/cmdline docs.
Patch by Éric Araujo.
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/cmdline.rst12
1 files changed, 8 insertions, 4 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 3749e74..4017ce8 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -1,7 +1,7 @@
-.. highlightlang:: none
+.. highlightlang:: sh
.. ATTENTION: You probably should update Misc/python.man, too, if you modify
-.. this file.
+ this file.
.. _using-on-general:
@@ -148,6 +148,10 @@ source.
added to the start of :data:`sys.path` and the ``__main__.py`` file in
that location is executed as the :mod:`__main__` module.
+ .. seealso::
+ :func:`runpy.run_path`
+ Equivalent functionality directly available to Python code
+
If no interface option is given, :option:`-i` is implied, ``sys.argv[0]`` is
an empty string (``""``) and the current directory will be added to the
@@ -155,11 +159,11 @@ start of :data:`sys.path`. Also, tab-completion and history editing is
automatically enabled, if available on your platform (see
:ref:`rlcompleter-config`).
+.. seealso:: :ref:`tut-invoking`
+
.. versionchanged:: 3.4
Automatic enabling of tab-completion and history editing.
-.. seealso:: :ref:`tut-invoking`
-
Generic options
~~~~~~~~~~~~~~~