mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Move chdir() and getcwd() descriptions to "Files and Directories" with
a pointer from the "Process Parameters" section. Based on comments from Aahz Maruch, Tim Peters, and GvR.
This commit is contained in:
parent
f930d827bb
commit
6db897c52c
1 changed files with 16 additions and 10 deletions
|
@ -86,12 +86,6 @@ is also a valid module: it may be imported directly as
|
|||
These functions and data items provide information and operate on the
|
||||
current process and user.
|
||||
|
||||
\begin{funcdesc}{chdir}{path}
|
||||
\index{directory!changing}
|
||||
Change the current working directory to \var{path}.
|
||||
Availability: Macintosh, \UNIX{}, Windows.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{datadesc}{environ}
|
||||
A mapping object representing the string environment. For example,
|
||||
\code{environ['HOME']} is the pathname of your home directory (on some
|
||||
|
@ -107,10 +101,11 @@ the appropriate process-creation functions to cause child processes to
|
|||
use a modified environment.
|
||||
\end{datadesc}
|
||||
|
||||
\begin{funcdesc}{getcwd}{}
|
||||
Return a string representing the current working directory.
|
||||
Availability: Macintosh, \UNIX{}, Windows.
|
||||
\end{funcdesc}
|
||||
\begin{funcdescni}{chdir}{path}
|
||||
\funclineni{getcwd}{}
|
||||
These functions are described in ``Files and Directories'' (section
|
||||
\ref{os-file-dir}).
|
||||
\end{funcdescni}
|
||||
|
||||
\begin{funcdesc}{getegid}{}
|
||||
Return the current process' effective group id.
|
||||
|
@ -410,6 +405,17 @@ See the \UNIX{} manual for the semantics.
|
|||
Availability: \UNIX{}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{chdir}{path}
|
||||
\index{directory!changing}
|
||||
Change the current working directory to \var{path}.
|
||||
Availability: Macintosh, \UNIX{}, Windows.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{getcwd}{}
|
||||
Return a string representing the current working directory.
|
||||
Availability: Macintosh, \UNIX{}, Windows.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{chmod}{path, mode}
|
||||
Change the mode of \var{path} to the numeric \var{mode}.
|
||||
Availability: \UNIX{}, Windows.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue