# HG changeset patch # User Goffi # Date 1522942925 -7200 # Node ID fbcdb761981c7bf1e34636f1f96dde0e677d4d42 # Parent 18e2ca5f798e684c24b5f214005c0f28ede2998b setup: use NAME to get version diff -r 18e2ca5f798e -r fbcdb761981c setup.py --- 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')