Skip to content

Commit c067cfd

Browse files
authored
Merge pull request #27 from Wuestengecko/excluded-marker
Fix excluded dir marker check
2 parents 51fbd7e + d794f32 commit c067cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/maturin_import_hook/project_importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def get_files_in_dir(
593593

594594
for dir_str, dirs, files in os.walk(root_path, topdown=True):
595595
dir_path = Path(dir_str)
596-
include_dir = dir_path not in ignore_dirs and not any(dir_name in excluded_dir_markers for dir_name in dirs)
596+
include_dir = dir_path not in ignore_dirs and not any(name in excluded_dir_markers for name in files)
597597

598598
if include_dir:
599599
dirs[:] = sorted(dir_name for dir_name in dirs if dir_name not in excluded_dir_names)

0 commit comments

Comments
 (0)