mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Some logical markup.
This commit is contained in:
parent
b55f9d3dfc
commit
b991f8d2e0
2 changed files with 10 additions and 10 deletions
|
|
@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
|
||||||
It starts by constructing up to four directories from a head and a
|
It starts by constructing up to four directories from a head and a
|
||||||
tail part. For the head part, it uses \code{sys.prefix} and
|
tail part. For the head part, it uses \code{sys.prefix} and
|
||||||
\code{sys.exec_prefix}; empty heads are skipped. For
|
\code{sys.exec_prefix}; empty heads are skipped. For
|
||||||
the tail part, it uses the empty string (on Mac or Windows) or it uses
|
the tail part, it uses the empty string (on Macintosh or Windows) or
|
||||||
first \file{lib/python\var{version}/site-packages} and then
|
it uses first \file{lib/python\var{version}/site-packages} and then
|
||||||
\file{lib/site-python} (on \UNIX{}). For each of the distinct
|
\file{lib/site-python} (on \UNIX{}). For each of the distinct
|
||||||
head-tail combinations, it sees if it refers to an existing directory,
|
head-tail combinations, it sees if it refers to an existing directory,
|
||||||
and if so, adds to \code{sys.path}, and also inspected for path
|
and if so, adds to \code{sys.path}, and also inspected for path
|
||||||
|
|
@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
|
||||||
configuration file.
|
configuration file.
|
||||||
|
|
||||||
After these path manipulations, an attempt is made to import a module
|
After these path manipulations, an attempt is made to import a module
|
||||||
named \code{sitecustomize}\refmodindex{sitecustomize}, which can
|
named \module{sitecustomize}\refmodindex{sitecustomize}, which can
|
||||||
perform arbitrary site-specific customizations. If this import fails
|
perform arbitrary site-specific customizations. If this import fails
|
||||||
with an \code{ImportError} exception, it is silently ignored.
|
with an \exception{ImportError} exception, it is silently ignored.
|
||||||
|
|
||||||
Note that for some non-\UNIX{} systems, \code{sys.prefix} and
|
Note that for some non-\UNIX{} systems, \code{sys.prefix} and
|
||||||
\code{sys.exec_prefix} are empty, and the path manipulations are
|
\code{sys.exec_prefix} are empty, and the path manipulations are
|
||||||
skipped; however the import of
|
skipped; however the import of
|
||||||
\code{sitecustomize}\refmodindex{sitecustomize} is still attempted.
|
\module{sitecustomize}\refmodindex{sitecustomize} is still attempted.
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ This will append site-specific paths to to the module search path.
|
||||||
It starts by constructing up to four directories from a head and a
|
It starts by constructing up to four directories from a head and a
|
||||||
tail part. For the head part, it uses \code{sys.prefix} and
|
tail part. For the head part, it uses \code{sys.prefix} and
|
||||||
\code{sys.exec_prefix}; empty heads are skipped. For
|
\code{sys.exec_prefix}; empty heads are skipped. For
|
||||||
the tail part, it uses the empty string (on Mac or Windows) or it uses
|
the tail part, it uses the empty string (on Macintosh or Windows) or
|
||||||
first \file{lib/python\var{version}/site-packages} and then
|
it uses first \file{lib/python\var{version}/site-packages} and then
|
||||||
\file{lib/site-python} (on \UNIX{}). For each of the distinct
|
\file{lib/site-python} (on \UNIX{}). For each of the distinct
|
||||||
head-tail combinations, it sees if it refers to an existing directory,
|
head-tail combinations, it sees if it refers to an existing directory,
|
||||||
and if so, adds to \code{sys.path}, and also inspected for path
|
and if so, adds to \code{sys.path}, and also inspected for path
|
||||||
|
|
@ -73,11 +73,11 @@ Note that \file{bletch} is omitted because it doesn't exist; the
|
||||||
configuration file.
|
configuration file.
|
||||||
|
|
||||||
After these path manipulations, an attempt is made to import a module
|
After these path manipulations, an attempt is made to import a module
|
||||||
named \code{sitecustomize}\refmodindex{sitecustomize}, which can
|
named \module{sitecustomize}\refmodindex{sitecustomize}, which can
|
||||||
perform arbitrary site-specific customizations. If this import fails
|
perform arbitrary site-specific customizations. If this import fails
|
||||||
with an \code{ImportError} exception, it is silently ignored.
|
with an \exception{ImportError} exception, it is silently ignored.
|
||||||
|
|
||||||
Note that for some non-\UNIX{} systems, \code{sys.prefix} and
|
Note that for some non-\UNIX{} systems, \code{sys.prefix} and
|
||||||
\code{sys.exec_prefix} are empty, and the path manipulations are
|
\code{sys.exec_prefix} are empty, and the path manipulations are
|
||||||
skipped; however the import of
|
skipped; however the import of
|
||||||
\code{sitecustomize}\refmodindex{sitecustomize} is still attempted.
|
\module{sitecustomize}\refmodindex{sitecustomize} is still attempted.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue