[py-svn] r37038 - py/dist/py/rest
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Jan 19 22:54:50 CET 2007
Author: cfbolz
Date: Fri Jan 19 22:54:49 2007
New Revision: 37038
Modified:
py/dist/py/rest/latex.py
Log:
move docutils import into function where it is needed
Modified: py/dist/py/rest/latex.py
==============================================================================
--- py/dist/py/rest/latex.py (original)
+++ py/dist/py/rest/latex.py Fri Jan 19 22:54:49 2007
@@ -1,6 +1,5 @@
import py
-from docutils.core import publish_cmdline
from py.__.process.cmdexec import ExecutionFailed
font_to_package = {"times": "times", "helvetica": "times",
@@ -107,6 +106,7 @@
old.chdir()
def process_rest_file(restfile, stylesheet=None, debug=False, rest_options=None):
+ from docutils.core import publish_cmdline
if not py.path.local.sysfind("pdflatex"):
raise SystemExit("ERROR: pdflatex not found")
old = py.path.local()
More information about the py-svn
mailing list