diff options
author | Fred Drake <fdrake@acm.org> | 1998-04-09 14:12:11 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-04-09 14:12:11 +0000 |
commit | 7cc16041fcaad05a31f0e84b8cf93ddec4c335f0 (patch) | |
tree | cd989d240703dc9d64aceb7f09d30a488344c976 /Doc | |
parent | 1699d3472a2c97dfd8fae3d715e78dd10c2a3ca2 (diff) | |
download | cpython-7cc16041fcaad05a31f0e84b8cf93ddec4c335f0.tar.gz |
Don't assume that \version expands to the 3-character major.minor number; it
is the full release version name ("1.5.1beta1", for instance).
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api.tex | 4 | ||||
-rw-r--r-- | Doc/api/api.tex | 4 | ||||
-rw-r--r-- | Doc/lib/libglob.tex | 2 | ||||
-rw-r--r-- | Doc/lib/libsite.tex | 6 | ||||
-rw-r--r-- | Doc/libglob.tex | 2 | ||||
-rw-r--r-- | Doc/libsite.tex | 6 |
6 files changed, 14 insertions, 10 deletions
diff --git a/Doc/api.tex b/Doc/api.tex index e0c3ad2a5b..5b87fd6ed9 100644 --- a/Doc/api.tex +++ b/Doc/api.tex @@ -509,14 +509,14 @@ calculates the module search path based upon its best guess for the location of the standard Python interpreter executable, assuming that the Python library is found in a fixed location relative to the Python interpreter executable. In particular, it looks for a directory named -\file{lib/python\version} (replacing \file{\version} with the current +\file{lib/python1.5} (replacing \file{1.5} with the current interpreter version) relative to the parent directory where the executable named \file{python} is found on the shell command search path (the environment variable \envvar{PATH}). For instance, if the Python executable is found in \file{/usr/local/bin/python}, it will assume that the libraries are in -\file{/usr/local/lib/python\version}. (In fact, this particular path +\file{/usr/local/lib/python1.5}. (In fact, this particular path is also the ``fallback'' location, used when no executable file named \file{python} is found along \envvar{PATH}.) The user can override this behavior by setting the environment variable \envvar{PYTHONHOME}, diff --git a/Doc/api/api.tex b/Doc/api/api.tex index e0c3ad2a5b..5b87fd6ed9 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -509,14 +509,14 @@ calculates the module search path based upon its best guess for the location of the standard Python interpreter executable, assuming that the Python library is found in a fixed location relative to the Python interpreter executable. In particular, it looks for a directory named -\file{lib/python\version} (replacing \file{\version} with the current +\file{lib/python1.5} (replacing \file{1.5} with the current interpreter version) relative to the parent directory where the executable named \file{python} is found on the shell command search path (the environment variable \envvar{PATH}). For instance, if the Python executable is found in \file{/usr/local/bin/python}, it will assume that the libraries are in -\file{/usr/local/lib/python\version}. (In fact, this particular path +\file{/usr/local/lib/python1.5}. (In fact, this particular path is also the ``fallback'' location, used when no executable file named \file{python} is found along \envvar{PATH}.) The user can override this behavior by setting the environment variable \envvar{PYTHONHOME}, diff --git a/Doc/lib/libglob.tex b/Doc/lib/libglob.tex index 6864c77fa0..10f667ad69 100644 --- a/Doc/lib/libglob.tex +++ b/Doc/lib/libglob.tex @@ -15,7 +15,7 @@ and \function{os.path.expandvars()}.) Returns a possibly-empty list of path names that match \var{pathname}, which must be a string containing a path specification. \var{pathname} can be either absolute (like -\file{/usr/src/Python\version/Makefile}) or relative (like +\file{/usr/src/Python-1.5/Makefile}) or relative (like \file{../../Tools/*.gif}), and can contain shell-style wildcards. \end{funcdesc} diff --git a/Doc/lib/libsite.tex b/Doc/lib/libsite.tex index 5ddbe8a36a..84b1e64048 100644 --- a/Doc/lib/libsite.tex +++ b/Doc/lib/libsite.tex @@ -36,8 +36,10 @@ refers to a directory (rather than a file). No item is added to For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are set to \file{/usr/local}. The Python \version\ library is then -installed in \file{/usr/local/lib/python\version}. Suppose this has a -subdirectory \file{/usr/local/lib/python\version/site-packages} with three +installed in \file{/usr/local/lib/python1.5} (note that only the first +three characters of \code{sys.version} are used to form the path +name). Suppose this has a subdirectory +\file{/usr/local/lib/python1.5/site-packages} with three subsubdirectories, \file{foo}, \file{bar} and \file{spam}, and two path configuration files, \file{foo.pth} and \file{bar.pth}. Assume \file{foo.pth} contains the following: diff --git a/Doc/libglob.tex b/Doc/libglob.tex index 6864c77fa0..10f667ad69 100644 --- a/Doc/libglob.tex +++ b/Doc/libglob.tex @@ -15,7 +15,7 @@ and \function{os.path.expandvars()}.) Returns a possibly-empty list of path names that match \var{pathname}, which must be a string containing a path specification. \var{pathname} can be either absolute (like -\file{/usr/src/Python\version/Makefile}) or relative (like +\file{/usr/src/Python-1.5/Makefile}) or relative (like \file{../../Tools/*.gif}), and can contain shell-style wildcards. \end{funcdesc} diff --git a/Doc/libsite.tex b/Doc/libsite.tex index 5ddbe8a36a..84b1e64048 100644 --- a/Doc/libsite.tex +++ b/Doc/libsite.tex @@ -36,8 +36,10 @@ refers to a directory (rather than a file). No item is added to For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are set to \file{/usr/local}. The Python \version\ library is then -installed in \file{/usr/local/lib/python\version}. Suppose this has a -subdirectory \file{/usr/local/lib/python\version/site-packages} with three +installed in \file{/usr/local/lib/python1.5} (note that only the first +three characters of \code{sys.version} are used to form the path +name). Suppose this has a subdirectory +\file{/usr/local/lib/python1.5/site-packages} with three subsubdirectories, \file{foo}, \file{bar} and \file{spam}, and two path configuration files, \file{foo.pth} and \file{bar.pth}. Assume \file{foo.pth} contains the following: |