From 7a58ad830fa3041b60b7e10b15b8ad2fd4d1218e Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Fri, 16 Jun 2023 16:58:23 +0900 Subject: [PATCH] optimize scanner.py --- scanner.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scanner.py b/scanner.py index 1e3511f..6d8e177 100644 --- a/scanner.py +++ b/scanner.py @@ -41,11 +41,6 @@ def get_py_file_paths(dirname): if file.endswith(".py"): file_path = os.path.join(root, file) file_paths.append(file_path) - - for subdir in dirs: - subdir = os.path.join(dirname, subdir) - sub_files = get_py_file_paths(subdir) - file_paths.extend(sub_files) return file_paths