X-Git-Url: https://git.mdrn.pl/django-ssify.git/blobdiff_plain/af10b85180a1c533b43091d65ab724977a6d2e74..9c5fe2012a14bf1c840e304b1bd1d9f72fffba6a:/setup.py diff --git a/setup.py b/setup.py index 6228c5c..dc7946d 100755 --- a/setup.py +++ b/setup.py @@ -10,9 +10,9 @@ from setuptools import setup, find_packages def get_version(): basedir = os.path.dirname(__file__) with open(os.path.join(basedir, 'ssify/version.py')) as f: - VERSION = None - exec(f.read()) - return VERSION + variables = {} + exec(f.read(), variables) + return variables.get('VERSION') raise RuntimeError('No version info found.')