Commit 7d7f11c
committed
Fix regression in #81
It seems #81 introduced some kind of bug:
I have the following rst file documenting MyClass object from ottemplate module:
```
.. currentmodule:: ottemplate
.. autosummary::
:toctree: _generated/
:template: class.rst_t
MyClass
```
with class.rst_t:
```
{{ objname }}
{{ underline }}
.. currentmodule:: {{ module }}
.. autoclass:: {{ objname }}
{% block methods %}
.. automethod:: __init__
{% endblock %}
```
results in the following error:
```
following exception was raised:
Traceback (most recent call last):
File "/home/schueller/.local/lib/python3.5/site-packages/sphinx/ext/autodoc.py", line 551, in import_object
__import__(self.modname)
ImportError: No module named 'ottemplate.ottemplate.MyClass'; 'ottemplate.ottemplate' is not a package
```
What do you think @sirno ?1 parent 6df5c12 commit 7d7f11c
2 files changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 140 | | |
144 | 141 | | |
145 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
908 | | - | |
909 | 907 | | |
910 | 908 | | |
911 | 909 | | |
| |||
0 commit comments