Mercurial > libervia-backend
changeset 2574:fbcdb761981c
setup: use NAME to get version
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Apr 2018 17:42:05 +0200 |
parents | 18e2ca5f798e |
children | 824ef7f64286 |
files | setup.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Thu Apr 05 15:23:38 2018 +0200 +++ b/setup.py Thu Apr 05 17:42:05 2018 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/env python2 # -*- coding: utf-8 -*- -# SAT: a jabber client +# SAT: an XMPP client # Copyright (C) 2009-2016 Jérôme Poisson (goffi@goffi.org) # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org) @@ -54,7 +54,7 @@ DBUS_DIR = 'dbus-1/services' DBUS_FILE = 'misc/org.goffi.SAT.service' -with open('sat/VERSION') as f: +with open(os.path.join(NAME, 'VERSION')) as f: VERSION = f.read().strip() is_dev_version = VERSION.endswith('D')