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
committerBastien Montagne <montagne29@wanadoo.fr>2018-01-01 18:24:18 +0300
commit0a9c8c94f1e333af523062c718f1d9e64204438d (patch)
tree6ed323d049195c0590edf4193ba029dcfef6300f
parentb20b05bed57f7360abb1d6d42d907391082d2018 (diff)
system_demo_mode: correct hidden file skipping
-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)