From a0e56c0d8509dbfad52348406ddcdf2c5027265c Mon Sep 17 00:00:00 2001 From: Michael Gorven Date: Tue, 23 Feb 2010 17:45:06 +0200 Subject: [PATCH] Include proper vesion file in tarball and fix reading thereof. --- MANIFEST.in | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 0e94db321..3b76a706c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -8,4 +8,4 @@ recursive-include resources/images * recursive-include scripts *.py include copyright.txt include LICENSE -include version.txt +include openlp/.version diff --git a/setup.py b/setup.py index 29db13c4b..ccdbd09af 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ try: finally: b.unlock() except: - ver_file = open(VERSION_FILE, u'w') + ver_file = open(VERSION_FILE, u'r') version = ver_file.read().strip() ver_file.close()