optimize scanner.py
This commit is contained in:
@@ -42,11 +42,6 @@ def get_py_file_paths(dirname):
|
|||||||
file_path = os.path.join(root, file)
|
file_path = os.path.join(root, file)
|
||||||
file_paths.append(file_path)
|
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
|
return file_paths
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user