parser.add_argument("pagesrc", type=str, default="", nargs='?', help="(optional) path to source file used for edit this page")
args = parser.parse_args()
-html_tmp = subprocess.run(
+html = subprocess.run(
[
args.xsltproc,
'--stringparam', 'pagesrc', args.pagesrc,
stderr=subprocess.PIPE,
)
-html = subprocess.run(
- [args.xmllint, '--nonet', '--format', '-'],
- input=html_tmp.stdout,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
-)
-
with open(args.htmlfile, 'wb') as outfile:
outfile.write(html.stdout)