[Checkins] SVN: z3c.rml/trunk/src/z3c/rml/rml2pdfscript.py Run the
rml2pdf script in the rml file folder.
Roger Ineichen
roger at projekt01.ch
Fri Aug 17 21:58:21 EDT 2007
Log message for revision 78916:
Run the rml2pdf script in the rml file folder.
This allows you to use relative image path based
on the folder which the rml file is located.
Changed:
U z3c.rml/trunk/src/z3c/rml/rml2pdfscript.py
-=-
Modified: z3c.rml/trunk/src/z3c/rml/rml2pdfscript.py
===================================================================
--- z3c.rml/trunk/src/z3c/rml/rml2pdfscript.py 2007-08-18 01:54:00 UTC (rev 78915)
+++ z3c.rml/trunk/src/z3c/rml/rml2pdfscript.py 2007-08-18 01:58:20 UTC (rev 78916)
@@ -93,6 +93,11 @@
program.append('testing=1')
program = " ".join(program)
+ # run the subprocess in the rml input file folder, this will make it easy
+ # to include images. If this doesn't fit, feel free to add a additional
+ # home argument, and let this be the default, ri
+ os.chdir(os.path.dirname(xmlInputName))
+
# start processing in a sub process, raise exception or return None
try:
p = subprocess.Popen(program, env=env, stdin=subprocess.PIPE,
More information about the Checkins
mailing list