Skip to content

Commit

Permalink
Clear pattern output dir at start of script
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Sep 12, 2024
1 parent b0d9e6c commit 342cbd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/dev/generate_pattern_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import asyncio
import json
import logging
import shutil
import sys
from pathlib import Path
from typing import TypedDict
Expand Down Expand Up @@ -45,6 +46,8 @@ async def _build_registry():
out_dir = Path("out")
patterns_dir = out_dir / "patterns"

shutil.rmtree(patterns_dir, ignore_errors=True)

out_dir.mkdir(parents=True, exist_ok=True)
patterns_dir.mkdir(parents=True, exist_ok=True)
for theme in Theme:
Expand Down

0 comments on commit 342cbd5

Please sign in to comment.