fix reading of version in py3

main
Alex Morega 12 years ago
parent 004cf44af6
commit 998ff1a1ab

@ -10,9 +10,9 @@ from setuptools import setup, find_packages
def get_version():
basedir = os.path.dirname(__file__)
with open(os.path.join(basedir, 'rq/version.py')) as f:
VERSION = None
exec(f.read())
return VERSION
locals = {}
exec(f.read(), locals)
return locals['VERSION']
raise RuntimeError('No version info found.')

Loading…
Cancel
Save