props/scripts/clear_webpack_cache.py

15 lines
253 B
Python
Raw Normal View History

import os
import shutil
CACHE_DIR = "./Props/node_modules/.cache/webpack"
def clear():
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.chdir("..")
shutil.rmtree(CACHE_DIR, ignore_errors=True)
if __name__ == "main":
clear()