mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-08 21:54:26 +08:00
optimize scanner.py
This commit is contained in:
parent
555a202c40
commit
7a58ad830f
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user