Show More
@@ -12,11 +12,14 b'' | |||||
12 | where WRITER is the name of a Docutils writer such as 'html' or 'manpage' |
|
12 | where WRITER is the name of a Docutils writer such as 'html' or 'manpage' | |
13 | """ |
|
13 | """ | |
14 |
|
14 | |||
|
15 | from __future__ import absolute_import | |||
|
16 | ||||
15 | import sys |
|
17 | import sys | |
16 | try: |
|
18 | try: | |
17 | from docutils.parsers.rst import roles |
|
19 | import docutils.core as core | |
18 | from docutils.core import publish_cmdline |
|
20 | import docutils.nodes as nodes | |
19 |
|
|
21 | import docutils.utils as utils | |
|
22 | import docutils.parsers.rst.roles as roles | |||
20 | except ImportError: |
|
23 | except ImportError: | |
21 | sys.stderr.write("abort: couldn't generate documentation: docutils " |
|
24 | sys.stderr.write("abort: couldn't generate documentation: docutils " | |
22 | "module is missing\n") |
|
25 | "module is missing\n") | |
@@ -58,4 +61,4 b' if __name__ == "__main__":' | |||||
58 | writer = sys.argv[1] |
|
61 | writer = sys.argv[1] | |
59 | del sys.argv[1] |
|
62 | del sys.argv[1] | |
60 |
|
63 | |||
61 | publish_cmdline(writer_name=writer) |
|
64 | core.publish_cmdline(writer_name=writer) |
General Comments 0
You need to be logged in to leave comments.
Login now