From fd7ced7d6643dbdfd57e27b36cf3dde19f35ae75 Mon Sep 17 00:00:00 2001 From: "ph4ntome@gmail.com" Date: Thu, 30 Oct 2014 22:03:24 +0000 Subject: [PATCH] forgot to upload new holiday.py git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@167 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df --- lib/holiday.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/holiday.py b/lib/holiday.py index f3d4fdd..ff58cf9 100644 --- a/lib/holiday.py +++ b/lib/holiday.py @@ -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