aboutsummaryrefslogtreecommitdiffstats
path: root/build/filter-wrapper.py
blob: 83db2914ee25f5e350a61b9505645897ef2ace7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3
"""Simple wrapper for filter programs which ensures that a blank
is returned as output.  The purpose is to silence the
AsciiDoc warning "no output from filter".
"""

import sys, subprocess

p = subprocess.Popen(sys.argv[1:])
sys.stdout.write(' ') # To suppress asciidoc 'no output from filter' warnings.
sys.exit(p.wait())