diff --git a/src/blade/load_build_files.py b/src/blade/load_build_files.py index 872f942d..12ad6a35 100644 --- a/src/blade/load_build_files.py +++ b/src/blade/load_build_files.py @@ -483,12 +483,17 @@ def under_excluded_trees(source_dir): for target_id in target_ids: source_dir, target_name = target_id.rsplit(':', 1) - if source_dir and not os.path.exists(source_dir): + + if source_dir == '': + source_dir = '.' + elif not os.path.exists(source_dir): _report_not_exist('Directory', source_dir, source_dir, blade) + skip_file = _check_under_skipped_dir(source_dir) if skip_file: console.warning('"%s" is under skipped directory due to "%s", ignored' % (target_id, skip_file)) continue + if target_name == '...': for root, dirs, files in os.walk(source_dir): # Note the dirs[:] = slice assignment; we are replacing the