diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-26 11:25:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-02 09:05:44 +0300 |
commit | 560888f91b03b215c30fa801fac10a63a65bfa69 (patch) | |
tree | b95dd06aa9f2c5add0ee74375a6517505d389ffa | |
parent | fde4fe14b77cb4c912e12f5a0454e7afb1c90378 (diff) |
system_demo_mode: correct hidden file skipping
-rw-r--r-- | system_demo_mode/config.py | 7 |
1 files changed, 2 insertions, 5 deletions
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) |