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
0403b99f
Commit
0403b99f
authored
Oct 06, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed build_scss() with 'libsass' to compile and write static 'website.css'
parent
4c085538
Pipeline
#280
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
uitwww/main.py
uitwww/main.py
+6
-13
No files found.
uitwww/main.py
View file @
0403b99f
...
...
@@ -87,16 +87,9 @@ def init(data):
@
cli
.
command
(
"build_scss"
)
def
build_scss
():
"""Build the scss file"""
base_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
'..'
)
scss_file
=
open
(
'%s/assets/scss/www.scss'
%
base_dir
,
'rb'
)
css_file
=
open
(
'%s/uitwww/static/website.css'
%
base_dir
,
'wb'
)
subprocess
.
run
(
[
sys
.
executable
,
'-mscss'
],
stdin
=
scss_file
,
stdout
=
css_file
,
check
=
True
,
)
css_file
.
flush
()
scss_file
.
close
()
css_file
.
close
()
"""Compile the scss file"""
print
(
"Compile the scss file"
)
base_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
".."
)
path
=
f"
{
base_dir
}
/assets/scss/www.scss"
with
open
(
f"
{
base_dir
}
/uitwww/static/website.css"
,
"w"
)
as
fn
:
fn
.
write
(
sass
.
compile
(
filename
=
path
))
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