mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612)
This commit is contained in:
parent
7d90b8aadb
commit
a855f824a2
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ Executable Python Scripts
|
||||||
On BSD'ish Unix systems, Python scripts can be made directly executable, like
|
On BSD'ish Unix systems, Python scripts can be made directly executable, like
|
||||||
shell scripts, by putting the line ::
|
shell scripts, by putting the line ::
|
||||||
|
|
||||||
#!/usr/bin/env python3.5
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
|
(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
|
of the script and giving the file an executable mode. The ``#!`` must be the
|
||||||
|
@ -129,7 +129,7 @@ of your user site-packages directory. Start Python and run this code::
|
||||||
|
|
||||||
>>> import site
|
>>> import site
|
||||||
>>> site.getusersitepackages()
|
>>> site.getusersitepackages()
|
||||||
'/home/user/.local/lib/python3.5/site-packages'
|
'/home/user/.local/lib/python3.x/site-packages'
|
||||||
|
|
||||||
Now you can create a file named :file:`usercustomize.py` in that directory and
|
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
|
put anything you want in it. It will affect every invocation of Python, unless
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue