mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Tests: fix incorrect check for hidden dir
Copy-pasted mistake in tests and tools.
This commit is contained in:
parent
6692af3997
commit
e00f3a6565
6 changed files with 11 additions and 22 deletions
|
|
@ -72,10 +72,8 @@ def batch_import(
|
|||
|
||||
def file_generator(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 pattern_match(filename):
|
||||
|
|
|
|||
|
|
@ -93,9 +93,8 @@ def addon_modules_sorted():
|
|||
def source_list(path, filename_check=None):
|
||||
from os.path import join
|
||||
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:
|
||||
filepath = join(dirpath, filename)
|
||||
|
|
|
|||
|
|
@ -100,10 +100,8 @@ def blend_list(mainpath):
|
|||
|
||||
def file_list(path, filename_check=None):
|
||||
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:
|
||||
filepath = join(dirpath, filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue