Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
66623a20
Commit
66623a20
authored
Oct 09, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed build_scss() to compile static 'website.css'
parent
1c686d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
uitwww/main.py
uitwww/main.py
+5
-13
No files found.
uitwww/main.py
View file @
66623a20
...
@@ -88,16 +88,8 @@ def init(data):
...
@@ -88,16 +88,8 @@ def init(data):
@
cli
.
command
(
"build_scss"
)
@
cli
.
command
(
"build_scss"
)
def
build_scss
():
def
build_scss
():
"""Build the scss file"""
"""Compile the scss file"""
base_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
'..'
)
print
(
"Compile the scss file"
)
scss_file
=
open
(
'%s/assets/scss/www.scss'
%
base_dir
,
'rb'
)
path
=
f"
{
BASE_DIR
}
/assets/scss/www.scss"
css_file
=
open
(
'%s/uitwww/static/website.css'
%
base_dir
,
'wb'
)
with
open
(
f"
{
BASE_DIR
}
/uitwww/static/website.css"
,
"w"
)
as
fn
:
subprocess
.
run
(
fn
.
write
(
compile_file
(
path
))
[
sys
.
executable
,
'-mscss'
],
stdin
=
scss_file
,
stdout
=
css_file
,
check
=
True
,
)
css_file
.
flush
()
scss_file
.
close
()
css_file
.
close
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment