Skip to content

Commit

Permalink
Added a new console script "rml2pdf" that renders an RML file to PDF.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed May 30, 2013
1 parent 3d78f08 commit 624cd0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
CHANGES
=======

2.1.1 (unreleased)
2.2.0 (unreleased)
------------------

- Nothing changed yet.
- Added a new console script "rml2pdf" that renders an RML file to PDF.


2.1.0 (2013-03-07)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def alltests():
],
entry_points={
'console_scripts': [
'rml2pdf = z3c.rml.rml2pdf:main',
'dtd = z3c.rml.dtd:main',
'reference = z3c.rml.reference:main'],
},
Expand Down
5 changes: 5 additions & 0 deletions src/z3c/rml/rml2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,10 @@ def go(xmlInputName, outputFileName=None, outDir=None, dtdDir=None):
doc.process(outputFile)


def main(args=None):
if args is None:
args = sys.argv[1:]
go(*args)

if __name__ == '__main__':
canvas = go(sys.argv[1])

0 comments on commit 624cd0b

Please sign in to comment.