From d8bc564093bd8c2cb05a82e709bc35d58240faf2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 19 Nov 2012 05:05:46 -0500 Subject: [PATCH] doc:source:conf.py: import FFT-tools version number (vs. hardcoding it) --- doc/source/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 2b2a660..a97ad3b 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -24,6 +24,9 @@ _doc_dir = os.path.dirname(_this_dir) _base_dir = os.path.dirname(_doc_dir) sys.path.insert(0, _base_dir) +from FFT_tools import __version__ + + # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. @@ -65,7 +68,7 @@ copyright = '2008-2012, {}'.format(author) # built documents. # # The short X.Y version. -version = '0.4' +version = __version__ # The full version, including alpha/beta/rc tags. release = version -- 2.26.2