Skip to content

Commit

Permalink
don't directly import urwidtrees.version
Browse files Browse the repository at this point in the history
  • Loading branch information
pazz committed Dec 26, 2016
1 parent bbe6ffb commit e2bde9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath(os.path.join('..','..')))
from urwidtrees.version import __version__


###############################
Expand Down Expand Up @@ -88,6 +86,9 @@ def __getattr__(cls, name):
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# this loads the version string into __version__
with open('../../urwidtrees/version.py') as f:
exec(f.read())
# The short X.Y version.
version = __version__
# The full version, including alpha/beta/rc tags.
Expand Down

0 comments on commit e2bde9c

Please sign in to comment.