mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Fixed multiple requests for images
Started adding SQL table layouts Making package loading prettier
This commit is contained in:
parent
625a412c3a
commit
5951baadaf
3 changed files with 9 additions and 7 deletions
|
@ -6,13 +6,13 @@ class Sassy():
|
|||
try:
|
||||
import sass
|
||||
except ImportError:
|
||||
print("Error: sass not found")
|
||||
print("Error: libsass not found")
|
||||
sys.exit(1)
|
||||
|
||||
path_to_sass = os.path.join('./usr', 'themes', theme, 'style.scss')
|
||||
path_to_sass = os.path.join('usr', 'themes', theme, 'style.scss')
|
||||
|
||||
if os.path.exists(path_to_sass):
|
||||
print("Sass found at: " + path_to_sass)
|
||||
print(f"Theme '{theme}' found at:", path_to_sass)
|
||||
self.sass = sass
|
||||
self.loadTheme(path_to_sass)
|
||||
else:
|
||||
|
@ -23,6 +23,6 @@ class Sassy():
|
|||
with open('static/css/style.css', 'w') as f:
|
||||
try:
|
||||
f.write(self.sass.compile(filename=theme, output_style='compressed'))
|
||||
print("Sass compiled successfully to: " + f.name)
|
||||
print("Sass compiled successfully to:", f.name)
|
||||
except self.sass.CompileError as e:
|
||||
print("Error: sass compilation failed:\n", e)
|
Loading…
Add table
Add a link
Reference in a new issue