Skip to content
Merged
Show file tree
Hide file tree
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
Move, update blurb, apply suggestions
  • Loading branch information
StanFromIreland committed Jul 8, 2025
commit 0d6edbc30f64b3080d9ce99906510997cf3c976f
8 changes: 7 additions & 1 deletion Lib/sysconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,13 @@ def _init_non_posix(vars):
vars['EXE'] = '.exe'
vars['VERSION'] = _PY_VERSION_SHORT_NO_DOT
vars['BINDIR'] = os.path.dirname(_safe_realpath(sys.executable))
vars['TZPATH'] = ''
# No standard path exists on Windows for this, but we'll check
# whether someone is imitating a POSIX-like layout
check_tzpath = os.path.join(vars['prefix'], 'share', 'zoneinfo')
if os.path.exists(check_tzpath):
vars['TZPATH'] = check_tzpath
else:
vars['TZPATH'] = ''

#
# public APIs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:mod:`zoneinfo`: Check in ``<prefix>/share/zoneinfo`` for data files on Windows

This file was deleted.

Loading