forgot to upload new holiday.py

git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@167 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
ph4ntome@gmail.com 2014-10-30 22:03:24 +00:00
parent ca627b5565
commit fd7ced7d66

View File

@ -23,6 +23,7 @@
# *****************************************
from datetime import date, timedelta
import pkg_resources
def _get_orthodox_easter(year):
"""compute date of orthodox easter
@ -318,7 +319,7 @@ class HolidayProvider(object):
@param filename: file to be loaded
"""
with open(filename, 'r') as f:
with open(pkg_resources.resource_stream(filename), 'r') as f:
for line in f:
line = line.strip()
if not line: continue