exclude __pycache__ from recipe dirs
This commit is contained in:
parent
1d85617b76
commit
8022c268bb
1 changed files with 3 additions and 2 deletions
|
@ -916,11 +916,12 @@ class Recipe(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def list_recipes(cls):
|
def list_recipes(cls, **kwargs):
|
||||||
|
skip_list = kwargs.pop("skip_list", ['__pycache__'])
|
||||||
recipes_dir = join(dirname(__file__), "recipes")
|
recipes_dir = join(dirname(__file__), "recipes")
|
||||||
for name in sorted(listdir(recipes_dir)):
|
for name in sorted(listdir(recipes_dir)):
|
||||||
fn = join(recipes_dir, name)
|
fn = join(recipes_dir, name)
|
||||||
if isdir(fn):
|
if isdir(fn) and name not in skip_list:
|
||||||
yield name
|
yield name
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue