Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanli
evm-store
Commits
adc92e5a
Commit
adc92e5a
authored
Aug 18, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 修复字体生成模块创建文件夹错误
parent
2dde9429
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
backend/view/api.py
backend/view/api.py
+2
-1
No files found.
backend/view/api.py
View file @
adc92e5a
...
@@ -327,7 +327,8 @@ def generate_font():
...
@@ -327,7 +327,8 @@ def generate_font():
random_str
=
uuid
.
uuid4
()
.
hex
random_str
=
uuid
.
uuid4
()
.
hex
temp_dir
=
Path
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)))
.
joinpath
(
"temp"
)
.
joinpath
(
random_str
)
temp_dir
=
Path
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)))
.
joinpath
(
"temp"
)
.
joinpath
(
random_str
)
if
not
temp_dir
.
exists
():
if
not
temp_dir
.
exists
():
temp_dir
.
mkdir
()
# temp_dir.mkdir()
os
.
makedirs
(
temp_dir
.
resolve
()
.
as_posix
())
fontSavePath
=
temp_dir
.
joinpath
(
font
.
filename
)
.
resolve
()
.
as_posix
()
fontSavePath
=
temp_dir
.
joinpath
(
font
.
filename
)
.
resolve
()
.
as_posix
()
font
.
save
(
fontSavePath
)
font
.
save
(
fontSavePath
)
...
...
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