diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-23 08:40:52 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-09-04 16:11:18 +0300 |
commit | 6f7db6d775ebf6525f6f7cbbae5ed98a3a8dedc2 (patch) | |
tree | 009071bbe40a16832acbc053f2c21d7fdd8ca928 | |
parent | 6f8d64cc75739213fae1f2329a646132439ef358 (diff) |
Correct mistake skipping hidden dirs
-rw-r--r-- | io_sequencer_edl/__init__.py | 5 | ||||
-rw-r--r-- | system_demo_mode/demo_mode.py | 5 |
2 files changed, 4 insertions, 6 deletions
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) |