Skip to content

Commit

Permalink
Update compile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lightumcc committed May 7, 2024
1 parent 3e393dc commit 9429acb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/local/bin/python3

import os
import json
import hashlib
Expand Down Expand Up @@ -90,8 +92,9 @@ def scan_dir(content_path, p):
def new_files():
files = []

if not os.path.exists(override_path):
os.mkdir(override_path)
if os.path.exists(override_path):
shutil.rmtree(override_path)
os.mkdir(override_path)

for content in override_contents:
if content in override_ignore:
Expand Down

0 comments on commit 9429acb

Please sign in to comment.