system_demo_mode: correct hidden file skipping

This commit is contained in:
Campbell Barton 2017-10-26 19:25:26 +11:00
parent fde4fe14b7
commit 560888f91b
1 changed files with 2 additions and 5 deletions

View File

@ -23,11 +23,8 @@ import os
def blend_list(path):
for dirpath, dirnames, filenames in os.walk(path):
# skip '.svn'
if dirpath.startswith("."):
continue
# skip '.git'
dirnames[:] = [d for d in dirnames if not d.startswith(".")]
for filename in filenames:
if filename.lower().endswith(".blend"):
filepath = os.path.join(dirpath, filename)