summaryrefslogtreecommitdiff
path: root/scheme2rst.py
diff options
context:
space:
mode:
authormichele.simionato <devnull@localhost>2009-03-17 16:42:59 +0000
committermichele.simionato <devnull@localhost>2009-03-17 16:42:59 +0000
commitc9b019d77dd0282dec6a6ea95aa94ca6fc662e13 (patch)
tree9ed74aa1ef783e31cf97f36b22aadfae38e204ab /scheme2rst.py
parentde79d8a56edd56d1edbc5515e976dcc809ff98d9 (diff)
downloadmicheles-c9b019d77dd0282dec6a6ea95aa94ca6fc662e13.tar.gz
Imported the sphinx directives in scheme2rst.py
Diffstat (limited to 'scheme2rst.py')
-rw-r--r--scheme2rst.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scheme2rst.py b/scheme2rst.py
index dbff86f..547ff99 100644
--- a/scheme2rst.py
+++ b/scheme2rst.py
@@ -12,6 +12,10 @@ current file.
import os, sys, re, webbrowser
from docutils.core import publish_cmdline
from ms.optionparser import OptionParser
+try:
+ import sphinx.directives # enable code-block
+except ImportError:
+ print 'Warning: sphinx is not installed'
identifier = r'[-A-Z\d_!\?\+\-\*/]+'
BIGCOMMENT = re.compile(r'#\|(.*)\|#(.*)', re.DOTALL)