Complain about nonexistent directories.
This commit is contained in:
parent
90aa31e949
commit
832246933b
1 changed files with 4 additions and 1 deletions
|
@ -675,7 +675,10 @@ def allcfgfiles(dir):
|
|||
datafiles = []
|
||||
if not os.path.isdir(dir):
|
||||
if interesting(dir):
|
||||
datafiles.append(dir)
|
||||
if not os.path.exists(dir):
|
||||
sys.stderr.write("wmllint: %s does not exist\n" % dir)
|
||||
else:
|
||||
datafiles.append(dir)
|
||||
else:
|
||||
for root, dirs, files in os.walk(dir):
|
||||
if vcdir in dirs:
|
||||
|
|
Loading…
Add table
Reference in a new issue