aboutsummaryrefslogtreecommitdiff
path: root/weekly/__init__.py
diff options
context:
space:
mode:
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'