aboutsummaryrefslogtreecommitdiff
path: root/weekly/__init__.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-09-06 16:13:50 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-09-06 16:13:50 -0400
commit5b29d620e0cf59b314f3d47457b67b9a39e27d7d (patch)
tree33a964bf8efbc10096a0419e6e2a205d99d043cf /weekly/__init__.py
parentd7bb3986c104076a2793aa8a89a9292968999564 (diff)
downloadweekly_og-5b29d620e0cf59b314f3d47457b67b9a39e27d7d.tar.gz
Initial commit
Diffstat (limited to 'weekly/__init__.py')
-rw-r--r--weekly/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/weekly/__init__.py b/weekly/__init__.py
new file mode 100644
index 0000000..873e2c3
--- /dev/null
+++ b/weekly/__init__.py
@@ -0,0 +1,6 @@
+from pkg_resources import get_distribution, DistributionNotFound
+try:
+ __version__ = get_distribution(__name__).version
+except DistributionNotFound:
+ # package is not installed
+ __version__ = 'unknown'