mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Fix files not being created on clean installation
This commit is contained in:
parent
09c8f3be63
commit
e5848eecf5
3 changed files with 19 additions and 6 deletions
|
@ -45,8 +45,11 @@ class CompileTheme:
|
|||
else:
|
||||
print("No sass file found!")
|
||||
sys.exit(1)
|
||||
|
||||
if not os.path.exists(css_dest):
|
||||
os.makedirs(css_dest)
|
||||
|
||||
with open(os.path.join(css_dest, 'style.css'), 'w', encoding='utf-8') as file:
|
||||
with open(os.path.join(css_dest, 'style.css'), encoding='utf-8', mode='w+') as file:
|
||||
try:
|
||||
file.write(sass.compile(filename=sass_path,output_style='compressed'))
|
||||
except sass.CompileError as err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue