From 235bb9c7e8773390b1a836f491037ae1e396e7e7 Mon Sep 17 00:00:00 2001
From: Bruce Flynn <brucef@ssec.wisc.edu>
Date: Thu, 7 Jan 2016 21:32:27 +0000
Subject: [PATCH] Modify __init__.py for newer PyVer

---
 edosl0util/__init__.py | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/edosl0util/__init__.py b/edosl0util/__init__.py
index 27a54a5..52493f1 100644
--- a/edosl0util/__init__.py
+++ b/edosl0util/__init__.py
@@ -1,10 +1,5 @@
 ### PyVer Loader Start
-import os
-verfile = 'edosl0util/version.txt'
-if os.path.exists(verfile):
-    execfile(verfile)
-else:
-    __version__ = '<unknown>'
-    __githash__ = ''
-del verfile
+import pkg_resources as _pkg
+execfile(_pkg.resource_filename(__name__, 'version.txt'))
+del _pkg
 ### PyVer Loader End
-- 
GitLab