|
18 | 18 | # If your extensions are in another directory, add it here. If the directory |
19 | 19 | # is relative to the documentation root, use os.path.abspath to make it |
20 | 20 | # absolute, like shown here. |
21 | | -sys.path.append(os.path.abspath(os.path.dirname(__file__) + '../..')) |
| 21 | +sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '../../postgresql')) |
22 | 22 |
|
23 | 23 | # General configuration |
24 | 24 | # --------------------- |
|
37 | 37 | master_doc = 'index' |
38 | 38 |
|
39 | 39 | # General substitutions. |
40 | | -import postgresql as meta |
41 | | -project = meta.__project__ |
42 | | -copyright = meta.__date__ + ', ' + meta.__author__ |
| 40 | +import project |
| 41 | +copyright = '2010, ' + project.author |
43 | 42 |
|
44 | 43 | # The default replacements for |version| and |release|, also used in various |
45 | 44 | # other places throughout the built documents. |
46 | 45 | # |
47 | 46 | # The short X.Y version. |
48 | | -version = '.'.join(map(str, meta.version_info[:2])) |
| 47 | +version = '.'.join(map(str, project.version_info[:2])) |
49 | 48 | # The full version, including alpha/beta/rc tags. |
50 | | -release = meta.__version__ |
| 49 | +release = project.version |
51 | 50 |
|
52 | 51 | # There are two options for replacing |today|: either, you set today to some |
53 | 52 | # non-false value, then it is used: |
|
145 | 144 | #html_file_suffix = '' |
146 | 145 |
|
147 | 146 | # Output file base name for HTML help builder. |
148 | | -htmlhelp_basename = meta.__project__ |
| 147 | +htmlhelp_basename = project.__name__ |
149 | 148 |
|
150 | 149 |
|
151 | 150 | # Options for LaTeX output |
|
180 | 179 |
|
181 | 180 | # If false, no module index is generated. |
182 | 181 | #latex_use_modindex = True |
| 182 | + |
| 183 | +project = project.name |
0 commit comments