Missing global keyword

"global folder_names_and_paths" is missing in get_folder_paths
This commit is contained in:
John Slegers 2024-08-11 00:40:16 +02:00 committed by GitHub
parent 1de69fe4d5
commit c21e99f67e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,6 +134,7 @@ def add_model_folder_path(folder_name: str, full_folder_path: str) -> None:
folder_names_and_paths[folder_name] = ([full_folder_path], set())
def get_folder_paths(folder_name: str) -> list[str]:
global folder_names_and_paths
return folder_names_and_paths[folder_name][0][:]
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]: