Merge "Ignore __pycache__ directory when looking at roles"
This commit is contained in:
commit
ca54cdca93
@ -194,6 +194,8 @@ class ZuulDirective(Directive):
|
|||||||
for p in os.listdir(d):
|
for p in os.listdir(d):
|
||||||
if not os.path.isdir(os.path.join(d, p)):
|
if not os.path.isdir(os.path.join(d, p)):
|
||||||
continue
|
continue
|
||||||
|
if p in ('__pycache__',):
|
||||||
|
continue
|
||||||
role_readme = os.path.join(d, p, 'README.rst')
|
role_readme = os.path.join(d, p, 'README.rst')
|
||||||
if os.path.exists(role_readme):
|
if os.path.exists(role_readme):
|
||||||
roles[p] = role_readme
|
roles[p] = role_readme
|
||||||
|
Loading…
Reference in New Issue
Block a user