[FIX] correct path for pytz datafiles

bzr revid: chs@openerp.com-20121130165026-3p6coxwignmzl92g
This commit is contained in:
Christophe Simonis 2012-11-30 17:50:26 +01:00
parent b2099e17bb
commit 050f65c21e
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def data():
import pytz
tzdir = os.path.dirname(pytz.__file__)
for root, _, filenames in os.walk(os.path.join(tzdir, "zoneinfo")):
base = root[len(tzdir) + 1:]
base = os.path.join('pytz', root[len(tzdir) + 1:])
r[base] = [os.path.join(root, f) for f in filenames]
return r.items()