Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-23 08:40:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-23 08:40:52 +0300
commit5e4e29c4681331a35248b9b95ded94eb86dffb9d (patch)
tree009071bbe40a16832acbc053f2c21d7fdd8ca928 /system_demo_mode
parent6f8d64cc75739213fae1f2329a646132439ef358 (diff)
Correct mistake skipping hidden dirs
Diffstat (limited to 'system_demo_mode')
-rw-r--r--system_demo_mode/demo_mode.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/system_demo_mode/demo_mode.py b/system_demo_mode/demo_mode.py
index b7986b73..ebf4b310 100644
--- a/system_demo_mode/demo_mode.py
+++ b/system_demo_mode/demo_mode.py
@@ -517,9 +517,8 @@ def load_config(cfg_name=DEMO_CFG):
def blend_dict_items(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)