From 560888f91b03b215c30fa801fac10a63a65bfa69 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 Oct 2017 19:25:26 +1100 Subject: system_demo_mode: correct hidden file skipping --- system_demo_mode/config.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'system_demo_mode/config.py') diff --git a/system_demo_mode/config.py b/system_demo_mode/config.py index 131b5fc1..24e25be5 100644 --- a/system_demo_mode/config.py +++ b/system_demo_mode/config.py @@ -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) -- cgit v1.2.3