]> granicus.if.org Git - python/commitdiff
Don't assume that \version expands to the 3-character major.minor number; it
authorFred Drake <fdrake@acm.org>
Thu, 9 Apr 1998 14:12:11 +0000 (14:12 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 9 Apr 1998 14:12:11 +0000 (14:12 +0000)
is the full release version name ("1.5.1beta1", for instance).

Doc/api.tex
Doc/api/api.tex
Doc/lib/libglob.tex
Doc/lib/libsite.tex
Doc/libglob.tex
Doc/libsite.tex

index e0c3ad2a5bf610a8c777ab8fca11064d89af2978..5b87fd6ed9e66034babe5996912da617ba3d39b5 100644 (file)
@@ -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},
index e0c3ad2a5bf610a8c777ab8fca11064d89af2978..5b87fd6ed9e66034babe5996912da617ba3d39b5 100644 (file)
@@ -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},
index 6864c77fa0910599a1237be688514b06fd4756f9..10f667ad69bec73f0610c5884cb06aa4e1b26955 100644 (file)
@@ -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}
 
index 5ddbe8a36a839a784f75cb9b298d87ca6d9be5cb..84b1e64048244c7a009a2d0723cf56f32b81ac2e 100644 (file)
@@ -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:
index 6864c77fa0910599a1237be688514b06fd4756f9..10f667ad69bec73f0610c5884cb06aa4e1b26955 100644 (file)
@@ -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}
 
index 5ddbe8a36a839a784f75cb9b298d87ca6d9be5cb..84b1e64048244c7a009a2d0723cf56f32b81ac2e 100644 (file)
@@ -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: