[Bf-extensions-cvs] [5e4e29c4] master: Correct mistake skipping hidden dirs
Campbell Barton
noreply at git.blender.org
Wed Aug 23 07:36:54 CEST 2017
Commit: 5e4e29c4681331a35248b9b95ded94eb86dffb9d
Author: Campbell Barton
Date: Wed Aug 23 15:40:52 2017 +1000
Branches: master
https://developer.blender.org/rBA5e4e29c4681331a35248b9b95ded94eb86dffb9d
Correct mistake skipping hidden dirs
===================================================================
M io_sequencer_edl/__init__.py
M system_demo_mode/demo_mode.py
===================================================================
diff --git a/io_sequencer_edl/__init__.py b/io_sequencer_edl/__init__.py
index e2360d33..44f04d32 100644
--- a/io_sequencer_edl/__init__.py
+++ b/io_sequencer_edl/__init__.py
@@ -115,9 +115,8 @@ class FindReelsEDL(Operator):
def media_file_walker(path):
ext_check = bpy.path.extensions_movie | bpy.path.extensions_audio
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:
fileonly, ext = os.path.splitext(filename)
ext_lower = ext.lower()
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)
More information about the Bf-extensions-cvs
mailing list