diff --git a/io_sequencer_edl/__init__.py b/io_sequencer_edl/__init__.py index e2360d3305773491b809694cfad42d2cb554b64c..44f04d32d33e6cc6b89d4f6284ee3866b3f8d4b6 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 b7986b73761df3588d36d6c856bf07f5a07f6a4e..ebf4b310506e410644e19c89017dfb623dbd6f09 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)