asciidoc2html: Check files recursively with --all.

This commit is contained in:
Florian Bruhin 2014-12-06 18:15:38 +01:00
parent 4db75a9595
commit 91fcac4735

View File

@ -77,7 +77,11 @@ def main(colors=False):
except FileExistsError:
pass
if args.all:
for src in glob.glob('**/*.asciidoc') + glob.glob('*.asciidoc'):
for root, _dirs, files in os.walk(os.getcwd()):
for filename in files:
if os.path.splitext(filename)[1] != '.asciidoc':
continue
src = os.path.join(root, filename)
parts = [args.all[0]]
dirname = os.path.dirname(src)
if dirname: