0032-Fix-TZPATH-on-windows.patch 809 B

12345678910111213141516171819202122
  1. From 1218ca492f4781ffc680e4a450ca1933ddcb29f4 Mon Sep 17 00:00:00 2001
  2. From: Isuru Fernando <isuruf@gmail.com>
  3. Date: Wed, 7 Oct 2020 10:08:30 -0500
  4. Subject: [PATCH] Fix TZPATH on windows
  5. ---
  6. Lib/sysconfig.py | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
  9. index bf04ac541e..11e81d4f44 100644
  10. --- a/Lib/sysconfig.py 2022-03-21 11:02:53.155328789 +0300
  11. +++ b/Lib/sysconfig.py 2022-03-21 11:03:00.719474212 +0300
  12. @@ -567,7 +567,7 @@
  13. if os.name == 'nt':
  14. _init_non_posix(_CONFIG_VARS)
  15. - _CONFIG_VARS['TZPATH'] = ''
  16. + _CONFIG_VARS['TZPATH'] = os.path.join(_PREFIX, "share", "zoneinfo")
  17. if os.name == 'posix':
  18. _init_posix(_CONFIG_VARS)
  19. # For backward compatibility, see issue19555