support SourceDocument as directory nam

allow the driver to use the new feature of sources.py and SourceDocument, so
user can refer to simply a directory as the document
This commit is contained in:
Martin A. Brown 2016-02-26 18:04:39 -08:00
parent 1951281cd9
commit 9ffdd1df5d
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def build(config, args):
targets.extend(i.broken.values())
else:
for arg in args:
if os.path.isfile(arg):
if os.path.isfile(arg) or os.path.isdir(arg):
source = tldp.sources.SourceDocument(arg)
targets.append(source)
for source in targets: