diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-26 11:25:26 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-01-01 18:24:18 +0300 |
commit | 0a9c8c94f1e333af523062c718f1d9e64204438d (patch) | |
tree | 6ed323d049195c0590edf4193ba029dcfef6300f | |
parent | b20b05bed57f7360abb1d6d42d907391082d2018 (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) |