Skip to content
Snippets Groups Projects
Commit 6ab60256 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Fix runsphinx.py for vanilla Python

parent d31c0d83
No related branches found
No related tags found
No related merge requests found
...@@ -76,8 +76,12 @@ def main(sysarg): ...@@ -76,8 +76,12 @@ def main(sysarg):
# causes Sphinx to fall over. We need to put it back while processing # causes Sphinx to fall over. We need to put it back while processing
# the documentation # the documentation
from pygments.lexer import RegexLexer from pygments.lexer import RegexLexer
# Reverse monkeypatch using unpatched function stored in mantid_ipython_widget! # Reverse monkeypatch using unpatched function stored in mantid_ipython_widget
RegexLexer.get_tokens_unprocessed = RegexLexer.get_tokens_unprocessed_unpatched # if it is available
try:
RegexLexer.get_tokens_unprocessed = RegexLexer.get_tokens_unprocessed_unpatched
except AttributeError:
pass
try: try:
return_value = sphinx.main(argv) return_value = sphinx.main(argv)
finally: finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment