Replace occurrences of execfile()
This commit is contained in:
parent
91a14c81a9
commit
5bded89466
|
@ -3,7 +3,7 @@
|
||||||
# Tailbone documentation build configuration file, created by
|
# Tailbone documentation build configuration file, created by
|
||||||
# sphinx-quickstart on Sat Feb 15 23:15:27 2014.
|
# sphinx-quickstart on Sat Feb 15 23:15:27 2014.
|
||||||
#
|
#
|
||||||
# This file is execfile()d with the current directory set to its
|
# This file is exec()d with the current directory set to its
|
||||||
# containing dir.
|
# containing dir.
|
||||||
#
|
#
|
||||||
# Note that not all possible configuration values are present in this
|
# Note that not all possible configuration values are present in this
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
execfile(os.path.join(os.pardir, 'tailbone', '_version.py'))
|
exec(open(os.path.join(os.pardir, 'tailbone', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -31,7 +31,7 @@ from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
execfile(os.path.join(here, 'tailbone', '_version.py'))
|
exec(open(os.path.join(here, 'tailbone', '_version.py')).read())
|
||||||
README = open(os.path.join(here, 'README.rst')).read()
|
README = open(os.path.join(here, 'README.rst')).read()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue