Skip to content

Commit

Permalink
fix:ensure path exists (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Nov 15, 2024
1 parent c0cc128 commit ce886f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@ def register_homescreen_app(self, icon: str, name: str, event: str):
if not os.path.isfile(full_icon_path):
self.log.error(f"failed to register homescreen app, icon does not exist: {full_icon_path}")
return
os.makedirs(f"{GUI_CACHE_PATH}/{self.skill_id}", exist_ok=True)
shared_path = f"{GUI_CACHE_PATH}/{self.skill_id}/{icon}"
shutil.copy(full_icon_path, shared_path)

Expand Down

0 comments on commit ce886f1

Please sign in to comment.