Updated how the version number is accessed.

这个提交包含在:
craig-warren
2016-01-20 19:28:32 +00:00
父节点 0ec43cda02
当前提交 b275e6a65a
共有 4 个文件被更改,包括 16 次插入17 次删除

查看文件

@@ -13,13 +13,15 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import os, re, shlex, sys
import os, sys
# If extensions (or modules to document with autodoc) are in another directory,
# 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('../..'))
import gprMax
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
@@ -70,11 +72,9 @@ author = 'Craig Warren and Antonis Giannopoulos'
# built documents.
#
# The short X.Y version.
# Read version number from gprMax/gprMax.py
#version = re.search('^__version__\s*=\s*\'(.*)\'', open('../../gprMax/gprMax.py').read(), re.M).group(1)
version = '3.0.0b18'
version = gprMax.__version__
# The full version, including alpha/beta/rc tags.
release = version + '(Bowmore)'
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.