Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dbb759

Browse files
committed
merge from 3.2 - Fix closes Issue12359 - Removing a confusing sentence from the previous change.
2 parents 925ef39 + 4707a99 commit 1dbb759

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/tutorial/modules.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ The Module Search Path
160160
.. index:: triple: module; search; path
161161

162162
When a module named :mod:`spam` is imported, the interpreter searches for a
163-
file named :file:`spam.py` in the directory containing the input script (or
164-
the current directory), and then in the list of directories specified by the
165-
environment variable :envvar:`PYTHONPATH`. This has the same syntax as the
166-
shell variable :envvar:`PATH`, that is, a list of directory names. When
167-
:envvar:`PYTHONPATH` is not set, or when the file is not found there, the
168-
search continues in an installation-dependent default path; on Unix, this is
169-
usually :file:`.:/usr/local/lib/python`.
163+
file named :file:`spam.py` in the directory containing the input script and
164+
then in the list of directories specified by the environment variable
165+
:envvar:`PYTHONPATH`. This has the same syntax as the shell variable
166+
:envvar:`PATH`, that is, a list of directory names. When :envvar:`PYTHONPATH`
167+
is not set, or when the file is not found there, the search continues in an
168+
installation-dependent default path; on Unix, this is usually
169+
:file:`.:/usr/local/lib/python`.
170170

171171
Actually, modules are searched in the list of directories given by the variable
172172
``sys.path`` which is initialized from the directory containing the input script

0 commit comments

Comments
 (0)