Commit 240d302d authored by shadMod's avatar shadMod 💬

quick fix

parent d9c10402
...@@ -117,7 +117,7 @@ def build_scss(): ...@@ -117,7 +117,7 @@ def build_scss():
# check if filename contain PATTERN # check if filename contain PATTERN
if fnmatch(name, PATTERN): if fnmatch(name, PATTERN):
val = os.path.join(path, name).split("scss", 1)[1] val = os.path.join(path, name).split("scss", 1)[1]
css_path.append(val.replace(".scss", "")) css_path.append(val.replace(".scss", "")[1:])
print("Compile the scss file") print("Compile the scss file")
for val in css_path: for val in css_path:
# init path css # init path css
...@@ -127,6 +127,6 @@ def build_scss(): ...@@ -127,6 +127,6 @@ def build_scss():
# open file, compile and write css # open file, compile and write css
with open(path, "w") as fn: with open(path, "w") as fn:
fn.write(minify(compile_file( fn.write(minify(compile_file(
Path(BASE_DIR, f"assets/scss{val}.scss") Path(BASE_DIR, f"assets/scss/{val}.scss")
))) )))
print("Write and populate css") print("Write and populate css")
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