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-10-26 11:25:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-11-02 09:05:44 +0300
commit560888f91b03b215c30fa801fac10a63a65bfa69 (patch)
treeb95dd06aa9f2c5add0ee74375a6517505d389ffa /system_demo_mode
parentfde4fe14b77cb4c912e12f5a0454e7afb1c90378 (diff)
system_demo_mode: correct hidden file skipping
Diffstat (limited to 'system_demo_mode')
-rw-r--r--system_demo_mode/config.py7
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)