summaryrefslogtreecommitdiff
path: root/user/py3-tz/zoneinfo-fix.patch
blob: 404e81c9f6d3d1b7594f8d24ffa7b63a0a4d840d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
Patch pulled from Gentoo. Forces package to use system tzinfo
--- a/pytz/__init__.py
+++ b/pytz/__init__.py
@@ -92,8 +92,7 @@
     if zoneinfo_dir is not None:
         filename = os.path.join(zoneinfo_dir, *name_parts)
     else:
-        filename = os.path.join(os.path.dirname(__file__),
-                                'zoneinfo', *name_parts)
+        filename = os.path.join('/usr/share/zoneinfo', *name_parts)
         if not os.path.exists(filename):
             # http://bugs.launchpad.net/bugs/383171 - we avoid using this
             # unless absolutely necessary to help when a broken version of