summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/appendix.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tutorial/appendix.rst')
-rw-r--r--Doc/tutorial/appendix.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst
index 241a812..73b7d1b 100644
--- a/Doc/tutorial/appendix.rst
+++ b/Doc/tutorial/appendix.rst
@@ -40,7 +40,7 @@ Executable Python Scripts
On BSD'ish Unix systems, Python scripts can be made directly executable, like
shell scripts, by putting the line ::
- #!/usr/bin/env python3.5
+ #!/usr/bin/env python
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
of the script and giving the file an executable mode. The ``#!`` must be the
@@ -52,7 +52,7 @@ comment in Python.
The script can be given an executable mode, or permission, using the
:program:`chmod` command.
-.. code-block:: shell-session
+.. code-block:: bash
$ chmod +x myscript.py
@@ -107,7 +107,7 @@ of your user site-packages directory. Start Python and run this code::
>>> import site
>>> site.getusersitepackages()
- '/home/user/.local/lib/python3.5/site-packages'
+ '/home/user/.local/lib/python2.7/site-packages'
Now you can create a file named :file:`usercustomize.py` in that directory and
put anything you want in it. It will affect every invocation of Python, unless