add possibility to read rst document with python -m kivy.uix.rst <docname.rst>

This commit is contained in:
Mathieu Virbel 2012-02-24 14:38:43 +01:00
parent e9fbb48463
commit abfeb2bc3c
1 changed files with 4 additions and 0 deletions

View File

@ -1017,3 +1017,7 @@ class _Visitor(nodes.NodeVisitor):
self.root.colors.get(name, self.root.colors['paragraph']), self.root.colors.get(name, self.root.colors['paragraph']),
text) text)
if __name__ == '__main__':
from kivy.base import runTouchApp
import sys
runTouchApp(RstDocument(source=sys.argv[1]))