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
0ff6abb2
Commit
0ff6abb2
authored
Oct 14, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm check else if and set exist_ok True in makedirs to check if it exists
parent
33bdb4dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
uitwww/main.py
uitwww/main.py
+1
-2
No files found.
uitwww/main.py
View file @
0ff6abb2
...
@@ -96,8 +96,7 @@ def build_scss():
...
@@ -96,8 +96,7 @@ def build_scss():
# init path css
# init path css
path
=
f"
{
UITWWW_DIR
}
/static/assets/
{
val
}
.css"
path
=
f"
{
UITWWW_DIR
}
/static/assets/
{
val
}
.css"
# check and mk dir if dir_ not exists
# check and mk dir if dir_ not exists
if
not
os
.
path
.
isdir
(
os
.
path
.
dirname
(
path
)):
os
.
makedirs
(
os
.
path
.
dirname
(
path
),
exist_ok
=
True
)
os
.
makedirs
(
os
.
path
.
dirname
(
path
))
# open file, compile and write css
# open file, compile and write css
with
open
(
path
,
"w"
)
as
fn
:
with
open
(
path
,
"w"
)
as
fn
:
fn
.
write
(
minify
(
compile_file
(
fn
.
write
(
minify
(
compile_file
(
...
...
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