mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-19 15:43:24 +01:00
Move the exec out of function, since that's a whole other scope...
This commit is contained in:
parent
c252042ddf
commit
b736e1e855
1 changed files with 4 additions and 7 deletions
11
setup.py
11
setup.py
|
@ -17,14 +17,11 @@ def requirements():
|
|||
return requirements_list
|
||||
|
||||
|
||||
def execfile(fn):
|
||||
with open(fn) as f:
|
||||
code = compile(f.read(), fn, 'exec')
|
||||
exec(code)
|
||||
|
||||
|
||||
with codecs.open('README.rst', 'r', 'utf-8') as fd:
|
||||
execfile(os.path.join('telegram', 'version.py'))
|
||||
fn = os.path.join('telegram', 'version.py')
|
||||
with open(fn) as fh:
|
||||
code = compile(fh.read(), fn, 'exec')
|
||||
exec(code)
|
||||
|
||||
setup(name='python-telegram-bot',
|
||||
version=__version__,
|
||||
|
|
Loading…
Reference in a new issue