Skip to content

Commit

Permalink
fix load-assets.py directory existence handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 committed Jun 27, 2024
1 parent 55b2291 commit 8c7b210
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions site/scripts/load-assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@




## Load
SOURCE = ROOT / "assets"

Expand All @@ -25,14 +24,13 @@
)


## Clear


## Save
DEST = ROOT / "site/static"

if os.path.exists(DEST):
shutil.rmtree(DEST)

if not os.path.exists(DEST):
os.mkdir(DEST)

for file in assets:
Expand Down

0 comments on commit 8c7b210

Please sign in to comment.