We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 271d93f commit 469076fCopy full SHA for 469076f
1 file changed
setup.py
@@ -17,9 +17,9 @@
17
def get_version():
18
basedir = os.path.dirname(__file__)
19
with open(os.path.join(basedir, 'textile/version.py')) as f:
20
- VERSION = None
21
- exec(f.read())
22
- return VERSION
+ variables = {}
+ exec(f.read(), variables)
+ return variables.get('VERSION')
23
raise RuntimeError('No version info found.')
24
25
setup(
0 commit comments