##// END OF EJS Templates
runrst: try to be more helpful if docutils is not installed
Nicolas Dumazet -
r11707:13d79a7b stable
parent child Browse files
Show More
@@ -13,9 +13,14 b' where WRITER is the name of a Docutils w'
13 """
13 """
14
14
15 import sys
15 import sys
16 from docutils.parsers.rst import roles
16 try:
17 from docutils.core import publish_cmdline
17 from docutils.parsers.rst import roles
18 from docutils import nodes, utils
18 from docutils.core import publish_cmdline
19 from docutils import nodes, utils
20 except ImportError:
21 sys.stderr.write("abort: couldn't generate documentation: docutils "
22 "module is missing\n")
23 sys.exit(-1)
19
24
20 def role_hg(name, rawtext, text, lineno, inliner,
25 def role_hg(name, rawtext, text, lineno, inliner,
21 options={}, content=[]):
26 options={}, content=[]):
General Comments 0
You need to be logged in to leave comments. Login now