Allow to set different 'zoneinfo' directory
Bug #1373959 reported by
mm
This bug report is a duplicate of:
Bug #1373960: Allow to set different 'zoneinfo' directory.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytz |
Triaged
|
Medium
|
Unassigned |
Bug Description
pytz should provide a simple way to set a different 'zoneinfo' directory for the timezone files.
This could be used to switch to the installed OS files or in my case to easier switch zoneinfo versions.
One solution could be to change in the open_resource(name) function in __init__.py the
filename = os.path.
to
filename = os.path.
and insert on module level
zoneinfo_dir = os.path.
In this way, the user of might
zoneinfo_dir = os.environ.
Changed in pytz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.