Use \envvar{FOO} instead of \code{\$FOO}.

This commit is contained in:
Fred Drake 1998-03-12 06:47:48 +00:00
parent 4e7e11abe5
commit 7be8fcb42a
2 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,8 @@
As a policy, Python doesn't run user-specified code on startup of As a policy, Python doesn't run user-specified code on startup of
Python programs. (Only interactive sessions execute the script Python programs. (Only interactive sessions execute the script
specified in the \code{PYTHONSTARTUP} environment variable if it exists). specified in the \envvar{PYTHONSTARTUP} environment variable if it
exists).
However, some programs or sites may find it convenient to allow users However, some programs or sites may find it convenient to allow users
to have a standard customization file, which gets run when a program to have a standard customization file, which gets run when a program
@ -23,7 +24,7 @@ home directory and if it can be opened, exececutes it (using
module \module{user}'s) global namespace. Errors during this phase module \module{user}'s) global namespace. Errors during this phase
are not caught; that's up to the program that imports the are not caught; that's up to the program that imports the
\module{user} module, if it wishes. The home directory is assumed to \module{user} module, if it wishes. The home directory is assumed to
be named by the \code{HOME} environment variable; if this is not set, be named by the \envvar{HOME} environment variable; if this is not set,
the current directory is used. the current directory is used.
The user's \file{.pythonrc.py} could conceivably test for The user's \file{.pythonrc.py} could conceivably test for

View File

@ -6,7 +6,8 @@
As a policy, Python doesn't run user-specified code on startup of As a policy, Python doesn't run user-specified code on startup of
Python programs. (Only interactive sessions execute the script Python programs. (Only interactive sessions execute the script
specified in the \code{PYTHONSTARTUP} environment variable if it exists). specified in the \envvar{PYTHONSTARTUP} environment variable if it
exists).
However, some programs or sites may find it convenient to allow users However, some programs or sites may find it convenient to allow users
to have a standard customization file, which gets run when a program to have a standard customization file, which gets run when a program
@ -23,7 +24,7 @@ home directory and if it can be opened, exececutes it (using
module \module{user}'s) global namespace. Errors during this phase module \module{user}'s) global namespace. Errors during this phase
are not caught; that's up to the program that imports the are not caught; that's up to the program that imports the
\module{user} module, if it wishes. The home directory is assumed to \module{user} module, if it wishes. The home directory is assumed to
be named by the \code{HOME} environment variable; if this is not set, be named by the \envvar{HOME} environment variable; if this is not set,
the current directory is used. the current directory is used.
The user's \file{.pythonrc.py} could conceivably test for The user's \file{.pythonrc.py} could conceivably test for