1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-20 01:52:32 +01:00
This commit is contained in:
GilbN 2021-11-01 22:14:40 +00:00
parent c4fce7935c
commit d824c6ed3c

View File

@ -133,7 +133,7 @@ def temporary_copy_files():
shutil.copytree(src,src_dst[src],dirs_exist_ok=True)
def create_theme_options():
def create_app(folder):
def create_css(folder):
with open(f"{folder}/{app}/{theme.lower()}.css", "w") as create_app:
content = f'@import url("{applications[app]["base_css"]}");\n@import url("{themes[theme]["url"]}");'
create_app.write(content)
@ -145,7 +145,7 @@ def create_theme_options():
for theme in themes:
folders = ["./CSS/themes","./css/base"]
for folder in folders:
create_app(folder)
create_css(folder)
if __name__ == "__main__":