11
11
# All configuration values have a default; values that are commented out
12
12
# serve to show the default.
13
13
14
- import sys , os
14
+ import os
15
+ import sys
15
16
16
17
# If extensions (or modules to document with autodoc) are in another directory,
17
18
# add these directories to sys.path here. If the directory is relative to the
18
19
# documentation root, use os.path.abspath to make it absolute, like shown here.
19
20
sys .path .insert (0 , os .path .abspath ('..' ))
21
+
22
+
20
23
class DocStringInheritor (type ):
21
- ''' A variation on
24
+ """ A variation on
22
25
http://groups.google.com/group/comp.lang.python/msg/26f7b4fcb4d66c95
23
26
by Paul McGuire
24
- '''
27
+ """
25
28
def __new__ (meta , name , bases , clsdict ):
26
29
if not ('__doc__' in clsdict and clsdict ['__doc__' ]):
27
30
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):
38
41
attribute .__doc__ = doc
39
42
break
40
43
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__))
43
44
44
45
# -- General configuration -----------------------------------------------------
45
46
@@ -61,7 +62,7 @@ def __new__(meta, name, bases, clsdict):
61
62
62
63
# General information about the project.
63
64
project = 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'
65
66
66
67
# The version info for the project you're documenting, acts as replacement for
67
68
# |version| and |release|, also used in various other places throughout the
0 commit comments