markup fixes

This commit is contained in:
David Goodger 2003-01-23 18:45:09 +00:00
parent ae27188998
commit f6324c80f8
1 changed files with 7 additions and 4 deletions

View File

@ -62,6 +62,7 @@ Glossary
- PYTHONBYTECODEBASE refers to the environment variable when necessary
to distinguish it from "bytecode base".
Locating bytecode files
-----------------------
@ -74,6 +75,7 @@ found there (either one does not exist or exists but is out-of-date)
and the bytecode base is not None, a second probe is made using the
directory in sys.path prefixed appropriately by the bytecode base.
Writing bytecode files
----------------------
@ -87,7 +89,7 @@ Defining augmented directories
Conceptually, the augmented directory for a bytecode file is the
directory in which the source file exists prefixed by the bytecode
base. In a Unix environment this would be:
base. In a Unix environment this would be::
pcb = os.path.abspath(sys.pythonbytecodebase)
if sourcefile[0] == os.sep: sourcefile = sourcefile[1:]
@ -96,7 +98,7 @@ base. In a Unix environment this would be:
On Windows, which does not have a single-rooted directory tree, the
drive letter of the directory containing the source file is treated as
a directory component after removing the trailing colon. The
augmented directory is thus derived as
augmented directory is thus derived as ::
pcb = os.path.abspath(sys.pythonbytecodebase)
drive, base = os.path.splitdrive(os.path.dirname(sourcefile))
@ -109,7 +111,7 @@ Fixing the location of the bytecode base
During program startup, the value of the PYTHONBYTECODEBASE
environment variable is made absolute, checked for validity and added
to the sys module, effectively:
to the sys module, effectively::
pcb = os.path.abspath(os.environ["PYTHONBYTECODEBASE"])
try:
@ -232,7 +234,7 @@ is not writable by the current user.
bytecode file is written.
In the Windows examples which follow, the urllib source code resides
in ``C:\PYTHON22\urllib.py``. ``C:\\PYTHON22`` is in sys.path but is
in ``C:\PYTHON22\urllib.py``. ``C:\PYTHON22`` is in sys.path but is
not writable by the current user.
- The bytecode base is set to ``C:\TEMP``. ``C:\PYTHON22\urllib.pyc``
@ -257,6 +259,7 @@ not writable by the current user.
the augmented directory, creating intermediate directories as
needed.
References
==========