mirror of https://github.com/python/cpython
In descriptions of Py_GetPrefix() and Py_GetExecPrefix(), make sure the
"--" at the start of the configure options isn't collapsed to "-" when the HTML is generated.
This commit is contained in:
parent
1072e46263
commit
c94d9348ca
10
Doc/api.tex
10
Doc/api.tex
|
@ -2390,8 +2390,8 @@ set with \cfunction{Py_SetProgramName()} and some environment variables;
|
||||||
for example, if the program name is \code{"/usr/local/bin/python"},
|
for example, if the program name is \code{"/usr/local/bin/python"},
|
||||||
the prefix is \code{"/usr/local"}. The returned string points into
|
the prefix is \code{"/usr/local"}. The returned string points into
|
||||||
static storage; the caller should not modify its value. This
|
static storage; the caller should not modify its value. This
|
||||||
corresponds to the \code{prefix} variable in the top-level
|
corresponds to the \makevar{prefix} variable in the top-level
|
||||||
\file{Makefile} and the \code{--prefix} argument to the
|
\file{Makefile} and the \code{-}\code{-prefix} argument to the
|
||||||
\program{configure} script at build time. The value is available to
|
\program{configure} script at build time. The value is available to
|
||||||
Python code as \code{sys.prefix}. It is only useful on \UNIX{}. See
|
Python code as \code{sys.prefix}. It is only useful on \UNIX{}. See
|
||||||
also the next function.
|
also the next function.
|
||||||
|
@ -2405,9 +2405,9 @@ variables; for example, if the program name is
|
||||||
\code{"/usr/local/bin/python"}, the exec-prefix is
|
\code{"/usr/local/bin/python"}, the exec-prefix is
|
||||||
\code{"/usr/local"}. The returned string points into static storage;
|
\code{"/usr/local"}. The returned string points into static storage;
|
||||||
the caller should not modify its value. This corresponds to the
|
the caller should not modify its value. This corresponds to the
|
||||||
\code{exec_prefix} variable in the top-level \file{Makefile} and the
|
\makevar{exec_prefix} variable in the top-level \file{Makefile} and the
|
||||||
\code{--exec_prefix} argument to the \program{configure} script at build
|
\code{-}\code{-exec_prefix} argument to the \program{configure} script
|
||||||
time. The value is available to Python code as
|
at build time. The value is available to Python code as
|
||||||
\code{sys.exec_prefix}. It is only useful on \UNIX{}.
|
\code{sys.exec_prefix}. It is only useful on \UNIX{}.
|
||||||
|
|
||||||
Background: The exec-prefix differs from the prefix when platform
|
Background: The exec-prefix differs from the prefix when platform
|
||||||
|
|
|
@ -2390,8 +2390,8 @@ set with \cfunction{Py_SetProgramName()} and some environment variables;
|
||||||
for example, if the program name is \code{"/usr/local/bin/python"},
|
for example, if the program name is \code{"/usr/local/bin/python"},
|
||||||
the prefix is \code{"/usr/local"}. The returned string points into
|
the prefix is \code{"/usr/local"}. The returned string points into
|
||||||
static storage; the caller should not modify its value. This
|
static storage; the caller should not modify its value. This
|
||||||
corresponds to the \code{prefix} variable in the top-level
|
corresponds to the \makevar{prefix} variable in the top-level
|
||||||
\file{Makefile} and the \code{--prefix} argument to the
|
\file{Makefile} and the \code{-}\code{-prefix} argument to the
|
||||||
\program{configure} script at build time. The value is available to
|
\program{configure} script at build time. The value is available to
|
||||||
Python code as \code{sys.prefix}. It is only useful on \UNIX{}. See
|
Python code as \code{sys.prefix}. It is only useful on \UNIX{}. See
|
||||||
also the next function.
|
also the next function.
|
||||||
|
@ -2405,9 +2405,9 @@ variables; for example, if the program name is
|
||||||
\code{"/usr/local/bin/python"}, the exec-prefix is
|
\code{"/usr/local/bin/python"}, the exec-prefix is
|
||||||
\code{"/usr/local"}. The returned string points into static storage;
|
\code{"/usr/local"}. The returned string points into static storage;
|
||||||
the caller should not modify its value. This corresponds to the
|
the caller should not modify its value. This corresponds to the
|
||||||
\code{exec_prefix} variable in the top-level \file{Makefile} and the
|
\makevar{exec_prefix} variable in the top-level \file{Makefile} and the
|
||||||
\code{--exec_prefix} argument to the \program{configure} script at build
|
\code{-}\code{-exec_prefix} argument to the \program{configure} script
|
||||||
time. The value is available to Python code as
|
at build time. The value is available to Python code as
|
||||||
\code{sys.exec_prefix}. It is only useful on \UNIX{}.
|
\code{sys.exec_prefix}. It is only useful on \UNIX{}.
|
||||||
|
|
||||||
Background: The exec-prefix differs from the prefix when platform
|
Background: The exec-prefix differs from the prefix when platform
|
||||||
|
|
Loading…
Reference in New Issue