system_demo_mode: correct hidden file skipping
This commit is contained in:
parent
fde4fe14b7
commit
560888f91b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue