Commit 0ff6abb2 authored by shadMod's avatar shadMod 💬

rm check else if and set exist_ok True in makedirs to check if it exists

parent 33bdb4dc
......@@ -96,8 +96,7 @@ def build_scss():
# init path css
path = f"{UITWWW_DIR}/static/assets/{val}.css"
# check and mk dir if dir_ not exists
if not os.path.isdir(os.path.dirname(path)):
os.makedirs(os.path.dirname(path))
os.makedirs(os.path.dirname(path), exist_ok=True)
# open file, compile and write css
with open(path, "w") as fn:
fn.write(minify(compile_file(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment