Skip to content

Commit 02b05da

Browse files
committed
Add documentation for TZPATH compile option
1 parent ea35e5c commit 02b05da

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Doc/library/zoneinfo.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,14 @@ Compile-time configuration
121121

122122
The default :data:`TZPATH` includes several common deployment locations for the
123123
time zone database (except on Windows, where there are no "well-known"
124-
locations for time zone data). Downstream distributors and those building
125-
Python from source who know where their system time zone data is deployed may
126-
change the default time zone path by specifying the compile-time option
127-
``PYTHONTZPATHDEFAULT``, which should be a string delimited by
128-
:data:`os.pathsep`.
124+
locations for time zone data). On POSIX systems, downstream distributors and
125+
those building Python from source who know where their system
126+
time zone data is deployed may change the default time zone path by specifying
127+
the compile-time option ``TZPATH`` (or, more likely, the ``configure`` flag
128+
``--with-tzpath``), which should be a string delimited by :data:`os.pathsep`.
129+
130+
On all platforms, the configured value is available as the ``TZPATH`` key in
131+
:func:`sysconfig.get_config_var`.
129132

130133
.. _zoneinfo_data_environment_var:
131134

0 commit comments

Comments
 (0)