Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add documentation for TZPATH compile option
  • Loading branch information
pganssle committed May 16, 2020
commit 02b05da28d10d823644239fbb920ba30bc05580d
13 changes: 8 additions & 5 deletions Doc/library/zoneinfo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,14 @@ Compile-time configuration

The default :data:`TZPATH` includes several common deployment locations for the
time zone database (except on Windows, where there are no "well-known"
locations for time zone data). Downstream distributors and those building
Python from source who know where their system time zone data is deployed may
change the default time zone path by specifying the compile-time option
``PYTHONTZPATHDEFAULT``, which should be a string delimited by
:data:`os.pathsep`.
locations for time zone data). On POSIX systems, downstream distributors and
those building Python from source who know where their system
time zone data is deployed may change the default time zone path by specifying
the compile-time option ``TZPATH`` (or, more likely, the ``configure`` flag
``--with-tzpath``), which should be a string delimited by :data:`os.pathsep`.

On all platforms, the configured value is available as the ``TZPATH`` key in
:func:`sysconfig.get_config_var`.
Comment thread
pganssle marked this conversation as resolved.

.. _zoneinfo_data_environment_var:

Expand Down