1111# All configuration values have a default; values that are commented out
1212# serve to show the default.
1313
14- import sys , os
14+ import os
15+ import sys
1516
1617# If extensions (or modules to document with autodoc) are in another directory,
1718# add these directories to sys.path here. If the directory is relative to the
1819# documentation root, use os.path.abspath to make it absolute, like shown here.
1920sys .path .insert (0 , os .path .abspath ('..' ))
21+
22+
2023class DocStringInheritor (type ):
21- ''' A variation on
24+ """ A variation on
2225 http://groups.google.com/group/comp.lang.python/msg/26f7b4fcb4d66c95
2326 by Paul McGuire
24- '''
27+ """
2528 def __new__ (meta , name , bases , clsdict ):
2629 if not ('__doc__' in clsdict and clsdict ['__doc__' ]):
2730 for mro_cls in (mro_cls for base in bases for mro_cls in base .mro ()):
@@ -38,8 +41,6 @@ def __new__(meta, name, bases, clsdict):
3841 attribute .__doc__ = doc
3942 break
4043 return type .__new__ (meta , name , bases , clsdict )
41- #import odml.doc
42- #odml.doc.BaseDocument = DocStringInheritor("BaseDocument", odml.doc.BaseDocument.__bases__, dict(odml.doc.BaseDocument.__dict__))
4344
4445# -- General configuration -----------------------------------------------------
4546
@@ -61,7 +62,7 @@ def __new__(meta, name, bases, clsdict):
6162
6263# General information about the project.
6364project = u'python-odml'
64- copyright = u'2011, Hagen Fritsch'
65+ copyright = u'2011-2018, German Neuroinformatics Node (G-Node); based on work by Hagen Fritsch'
6566
6667# The version info for the project you're documenting, acts as replacement for
6768# |version| and |release|, also used in various other places throughout the
0 commit comments