Don't list __init__.py files in profile list
This commit is contained in:
parent
9467a7cd77
commit
bd9992be29
|
|
@ -26,6 +26,8 @@ def list_profiles(filter_irrelevant_macs=True, subpath='', filter_top_level_prof
|
|||
for PATH_ITEM in storage['PROFILE_PATH']:
|
||||
for root, folders, files in os.walk(os.path.abspath(os.path.expanduser(PATH_ITEM+subpath))):
|
||||
for file in files:
|
||||
if file == '__init__.py':
|
||||
continue
|
||||
if os.path.splitext(file)[1] == '.py':
|
||||
tailored = False
|
||||
if len(mac := re.findall('(([a-zA-z0-9]{2}[-:]){5}([a-zA-z0-9]{2}))', file)):
|
||||
|
|
|
|||
Loading…
Reference in New Issue