Skip to content

Commit

Permalink
DEV: Update sphinx configuration to avoid execfile on file with relat…
Browse files Browse the repository at this point in the history
…ive import.
  • Loading branch information
cfarrow committed Apr 19, 2017
1 parent 98761c7 commit 657daa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Expand Up @@ -38,8 +38,8 @@
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
d = {}
execfile(os.path.join('..', '..', 'envisage', '__init__.py'), d)
version = release = d['__version__']
execfile(os.path.join('..', '..', 'envisage', '_version.py'), d)
version = release = d['full_version']

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down

0 comments on commit 657daa7

Please sign in to comment.