Skip to content

Commit fed2060

Browse files
authored
Merge pull request #58 from PyAutoLabs/feature/smoke-speedup-fixes
fix: scope rglob to target directory in script/notebook finders
2 parents 3392dd8 + fbc888a commit fed2060

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autobuild/build_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def execute_notebooks_in_folder(
171171
# Infrastructure files — always skip, never report
172172
infra_skip = ["__init__", "README"]
173173
no_run_list.extend(infra_skip)
174-
files = list(Path.cwd().rglob(f"{directory}/**/*.ipynb"))
174+
files = list((Path.cwd() / directory).rglob("*.ipynb"))
175175

176176
print(f"Found {len(files)} notebooks")
177177

@@ -300,7 +300,7 @@ def find_scripts_in_folder(directory: str) -> List[Path]:
300300
-------
301301
A list of paths to the scripts
302302
"""
303-
files = list(Path.cwd().rglob(f"{directory}/**/*.py"))
303+
files = list((Path.cwd() / directory).rglob("*.py"))
304304
return sorted(
305305
files,
306306
key=lambda f: (

0 commit comments

Comments
 (0)