From cef3a7a300cdf5fc955dc7eec51a5e435ab3853a Mon Sep 17 00:00:00 2001 From: BBC-Esq Date: Sun, 30 Jun 2024 07:10:06 -0400 Subject: [PATCH] fix vector models folder For a first time user the "vector" directory within the "models" folder does not exist yet, which throws an error when the script tries to iterate over it to list all the vector models downloaded (if any). This simply creates the directory if it doesn't yet exist. --- src/gui_tabs_models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui_tabs_models.py b/src/gui_tabs_models.py index 98cf89d5..42d64eac 100644 --- a/src/gui_tabs_models.py +++ b/src/gui_tabs_models.py @@ -36,6 +36,8 @@ def __init__(self, parent=None): models_dir.mkdir(parents=True) vector_models_dir = models_dir / "Vector" + if not vector_models_dir.exists(): + vector_models_dir.mkdir(parents=True) existing_vector_directories = {d.name for d in vector_models_dir.iterdir() if d.is_dir()}