[Bf-extensions-cvs] [0a9c8c94] blender-v2.79a-release: system_demo_mode: correct hidden file skipping
Campbell Barton
noreply at git.blender.org
Mon Jan 1 16:36:27 CET 2018
Commit: 0a9c8c94f1e333af523062c718f1d9e64204438d
Author: Campbell Barton
Date: Thu Oct 26 19:25:26 2017 +1100
Branches: blender-v2.79a-release
https://developer.blender.org/rBA0a9c8c94f1e333af523062c718f1d9e64204438d
system_demo_mode: correct hidden file skipping
===================================================================
M system_demo_mode/config.py
===================================================================
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)
More information about the Bf-extensions-cvs
mailing list