|
Original |
Translation |
|
160
|
|
|
|
161
|
:file:`%HOME%\\pydistutils.cfg`
|
|
|
162
|
|
|
|
163
|
On all platforms, the "personal" file can be temporarily disabled by passing the `--no-user-cfg` option.
|
|
|
164
|
|
165
|
On Unix, if the :envvar:`HOME` environment variable is not defined, the user's home directory will be determined with the :func:`getpwuid` function from the standard :mod:`pwd` module. This is done by the :func:`os.path.expanduser` function used by Distutils.
|
|
|
166
|
I.e., in the current directory (usually the location of the setup script).
|
|
|
167
|
(See also note (1).) Under Python 1.6 and later, Python's default "installation prefix" is :file:`C:\\Python`, so the system configuration file is normally :file:`C:\\Python\\Lib\\distutils\\distutils.cfg`. Under Python 1.5.2, the default prefix was :file:`C:\\Program Files\\Python`, and the Distutils were not part of the standard library---so the system configuration file would be :file:`C:\\Program Files\\Python\\distutils\\distutils.cfg` in a standard Python 1.5.2 installation under Windows.
|
|
|
168
|
On Windows, if the :envvar:`HOME` environment variable is not defined, :envvar:`USERPROFILE` then :envvar:`HOMEDRIVE` and :envvar:`HOMEPATH` will be tried. This is done by the :func:`os.path.expanduser` function used by Distutils.
|
|
|
169
|
|
|