summaryrefslogtreecommitdiff
path: root/alot/__init__.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-01-07 11:07:23 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-01-07 11:07:23 +0000
commita255d407a4e94136b57971e4bb4c9fe014c9c4b5 (patch)
tree0a24e353d95ef953a9d172f19d06a9228c49c964 /alot/__init__.py
parent06224ad44b7369915b32e87ad0fe102a12949191 (diff)
make sure __init__ only reads the VERSION file
and never writes it. The file /alot/VERSION will be provided in the future and contain the release version string. setup.py will try to overwrite this with the result of `git describe` which will suceed only if we are on a git checkout.
Diffstat (limited to 'alot/__init__.py')
-rw-r--r--alot/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/alot/__init__.py b/alot/__init__.py
index 7575f5cb..bef59344 100644
--- a/alot/__init__.py
+++ b/alot/__init__.py
@@ -1,8 +1,7 @@
-
-from version import get_git_version
+from version import read_version
__productname__ = 'alot'
-__version__ = get_git_version()
+__version__ = read_version()
__copyright__ = "Copyright (C) 2011 Patrick Totzke"
__author__ = "Patrick Totzke"
__author_email__ = "patricktotzke@gmail.com"