File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -509,14 +509,14 @@ \section{Embedding Python}
509509location of the standard Python interpreter executable, assuming that
510510the Python library is found in a fixed location relative to the Python
511511interpreter executable. In particular, it looks for a directory named
512- \file {lib/python \version } (replacing \file {\version } with the current
512+ \file {lib/python1.5 } (replacing \file {1.5 } with the current
513513interpreter version) relative to the parent directory where the
514514executable named \file {python} is found on the shell command search
515515path (the environment variable \envvar {PATH}).
516516
517517For instance, if the Python executable is found in
518518\file {/usr/local/bin/python}, it will assume that the libraries are in
519- \file {/usr/local/lib/python \version }. (In fact, this particular path
519+ \file {/usr/local/lib/python1.5 }. (In fact, this particular path
520520is also the `` fallback'' location, used when no executable file named
521521\file {python} is found along \envvar {PATH}.) The user can override
522522this behavior by setting the environment variable \envvar {PYTHONHOME},
Original file line number Diff line number Diff line change @@ -509,14 +509,14 @@ \section{Embedding Python}
509509location of the standard Python interpreter executable, assuming that
510510the Python library is found in a fixed location relative to the Python
511511interpreter executable. In particular, it looks for a directory named
512- \file {lib/python \version } (replacing \file {\version } with the current
512+ \file {lib/python1.5 } (replacing \file {1.5 } with the current
513513interpreter version) relative to the parent directory where the
514514executable named \file {python} is found on the shell command search
515515path (the environment variable \envvar {PATH}).
516516
517517For instance, if the Python executable is found in
518518\file {/usr/local/bin/python}, it will assume that the libraries are in
519- \file {/usr/local/lib/python \version }. (In fact, this particular path
519+ \file {/usr/local/lib/python1.5 }. (In fact, this particular path
520520is also the `` fallback'' location, used when no executable file named
521521\file {python} is found along \envvar {PATH}.) The user can override
522522this behavior by setting the environment variable \envvar {PYTHONHOME},
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ \section{Standard Module \module{glob}}
1515Returns a possibly-empty list of path names that match \var {pathname},
1616which must be a string containing a path specification.
1717\var {pathname} can be either absolute (like
18- \file {/usr/src/Python\version /Makefile}) or relative (like
18+ \file {/usr/src/Python-1.5 /Makefile}) or relative (like
1919\file {../../Tools/*.gif}), and can contain shell-style wildcards.
2020\end {funcdesc }
2121
Original file line number Diff line number Diff line change @@ -36,8 +36,10 @@ \section{Standard Module \module{site}}
3636
3737For example, suppose \code {sys.prefix} and \code {sys.exec_prefix} are
3838set to \file {/usr/local}. The Python \version \ library is then
39- installed in \file {/usr/local/lib/python\version }. Suppose this has a
40- subdirectory \file {/usr/local/lib/python\version /site-packages} with three
39+ installed in \file {/usr/local/lib/python1.5} (note that only the first
40+ three characters of \code {sys.version} are used to form the path
41+ name). Suppose this has a subdirectory
42+ \file {/usr/local/lib/python1.5/site-packages} with three
4143subsubdirectories, \file {foo}, \file {bar} and \file {spam}, and two
4244path configuration files, \file {foo.pth} and \file {bar.pth}. Assume
4345\file {foo.pth} contains the following:
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ \section{Standard Module \module{glob}}
1515Returns a possibly-empty list of path names that match \var {pathname},
1616which must be a string containing a path specification.
1717\var {pathname} can be either absolute (like
18- \file {/usr/src/Python\version /Makefile}) or relative (like
18+ \file {/usr/src/Python-1.5 /Makefile}) or relative (like
1919\file {../../Tools/*.gif}), and can contain shell-style wildcards.
2020\end {funcdesc }
2121
Original file line number Diff line number Diff line change @@ -36,8 +36,10 @@ \section{Standard Module \module{site}}
3636
3737For example, suppose \code {sys.prefix} and \code {sys.exec_prefix} are
3838set to \file {/usr/local}. The Python \version \ library is then
39- installed in \file {/usr/local/lib/python\version }. Suppose this has a
40- subdirectory \file {/usr/local/lib/python\version /site-packages} with three
39+ installed in \file {/usr/local/lib/python1.5} (note that only the first
40+ three characters of \code {sys.version} are used to form the path
41+ name). Suppose this has a subdirectory
42+ \file {/usr/local/lib/python1.5/site-packages} with three
4143subsubdirectories, \file {foo}, \file {bar} and \file {spam}, and two
4244path configuration files, \file {foo.pth} and \file {bar.pth}. Assume
4345\file {foo.pth} contains the following:
You can’t perform that action at this time.
0 commit comments