Skip to content

Commit

Permalink
fix vector models folder
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BBC-Esq authored Jun 30, 2024
1 parent 11026c0 commit cef3a7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui_tabs_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}

Expand Down

0 comments on commit cef3a7a

Please sign in to comment.