mirror of https://github.com/tLDP/python-tldp
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:
parent
1951281cd9
commit
9ffdd1df5d
|
@ -72,7 +72,7 @@ def build(config, args):
|
||||||
targets.extend(i.broken.values())
|
targets.extend(i.broken.values())
|
||||||
else:
|
else:
|
||||||
for arg in args:
|
for arg in args:
|
||||||
if os.path.isfile(arg):
|
if os.path.isfile(arg) or os.path.isdir(arg):
|
||||||
source = tldp.sources.SourceDocument(arg)
|
source = tldp.sources.SourceDocument(arg)
|
||||||
targets.append(source)
|
targets.append(source)
|
||||||
for source in targets:
|
for source in targets:
|
||||||
|
|
Loading…
Reference in New Issue