Skip to content

Commit

Permalink
ci_addons: Ensure "list" function always work whilelisting valid dire…
Browse files Browse the repository at this point in the history
…ctories
  • Loading branch information
jcfr committed Oct 27, 2016
1 parent abfaa8e commit 33212e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ci_addons/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ def list_addons():

for dirname, dirnames, filenames in os.walk(home()):

for skip_dir in ['.git', '_tests', 'ci_addons']:
if skip_dir in dirnames:
# do *NOT* recurse into any directory named ``skip_dir``.
dirnames.remove(skip_dir)
for v in list(dirnames):
dirnames.remove(v)
dirnames += ['anyci', 'appveyor', 'circle', 'travis']

if dirname == home():
continue
Expand Down

0 comments on commit 33212e3

Please sign in to comment.