From 35319a2a2ad278a37e33bb1ed15f9afa44e5b09d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B6bke?= Date: Tue, 2 Jun 2020 21:14:12 +0200 Subject: [PATCH] Update build_directory_md.py (#2066) Propagate argument `top_dir` to good_file_paths. Previously this argument did not get passed to the helper function when calling print_directory_md. --- scripts/build_directory_md.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_directory_md.py b/scripts/build_directory_md.py index 9e26ee81a..7a4bc3a4b 100755 --- a/scripts/build_directory_md.py +++ b/scripts/build_directory_md.py @@ -31,7 +31,7 @@ def print_path(old_path: str, new_path: str) -> str: def print_directory_md(top_dir: str = ".") -> None: old_path = "" - for filepath in sorted(good_file_paths()): + for filepath in sorted(good_file_paths(top_dir)): filepath, filename = os.path.split(filepath) if filepath != old_path: old_path = print_path(old_path, filepath)