Ignore the docs build directory.

This commit is contained in:
chriseth 2017-07-12 19:06:04 +02:00
parent 41e5b2c3c2
commit d3b447c203

View File

@ -83,7 +83,9 @@ if __name__ == '__main__':
if len(sys.argv) > 2 and sys.argv[2] == 'docs':
docs = True
for root, dir, files in os.walk(path):
for root, subdirs, files in os.walk(path):
if '_build' in subdirs:
subdirs.remove('_build')
for f in files:
path = join(root, f)
if docs: