We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3392dd8 + fbc888a commit fed2060Copy full SHA for fed2060
1 file changed
autobuild/build_util.py
@@ -171,7 +171,7 @@ def execute_notebooks_in_folder(
171
# Infrastructure files — always skip, never report
172
infra_skip = ["__init__", "README"]
173
no_run_list.extend(infra_skip)
174
- files = list(Path.cwd().rglob(f"{directory}/**/*.ipynb"))
+ files = list((Path.cwd() / directory).rglob("*.ipynb"))
175
176
print(f"Found {len(files)} notebooks")
177
@@ -300,7 +300,7 @@ def find_scripts_in_folder(directory: str) -> List[Path]:
300
-------
301
A list of paths to the scripts
302
"""
303
- files = list(Path.cwd().rglob(f"{directory}/**/*.py"))
+ files = list((Path.cwd() / directory).rglob("*.py"))
304
return sorted(
305
files,
306
key=lambda f: (
0 commit comments