[Bf-extensions-cvs] [560888f9] master: system_demo_mode: correct hidden file skipping
Campbell Barton
noreply at git.blender.org
Thu Nov 2 06:59:20 CET 2017
Commit: 560888f91b03b215c30fa801fac10a63a65bfa69
Author: Campbell Barton
Date: Thu Oct 26 19:25:26 2017 +1100
Branches: master
https://developer.blender.org/rBA560888f91b03b215c30fa801fac10a63a65bfa69
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