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
d3e4a593
Commit
d3e4a593
authored
Nov 10, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🌈
style: 修改源码打包最终路径
parent
97cfe161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend/view/api.py
backend/view/api.py
+2
-2
No files found.
backend/view/api.py
View file @
d3e4a593
...
...
@@ -425,7 +425,7 @@ def parse_header_files():
f
.
write
(
json
.
dumps
(
result
))
result_list
.
append
(
result
)
target_dir
=
Path
(
config
.
get
(
"UPLOAD_PATH"
))
.
joinpath
(
config
.
get
(
"
UPLOAD
_DIR"
))
.
resolve
()
.
as_posix
()
target_dir
=
Path
(
config
.
get
(
"UPLOAD_PATH"
))
.
joinpath
(
config
.
get
(
"
TEMP
_DIR"
))
.
resolve
()
.
as_posix
()
if
len
(
result_list
)
>
0
:
path_list
=
generate_from_list
(
result_list
)
target_file
=
compress_files
(
path_list
,
target_dir
)
...
...
@@ -453,7 +453,7 @@ def process_parse():
if
len
(
params
)
<=
0
:
return
response_result
(
ResponseCode
.
PARAMETER_NULL
)
target_dir
=
Path
(
config
.
get
(
"UPLOAD_PATH"
))
.
joinpath
(
config
.
get
(
"
UPLOAD
_DIR"
))
.
joinpath
(
params
[
"dir"
])
target_dir
=
Path
(
config
.
get
(
"UPLOAD_PATH"
))
.
joinpath
(
config
.
get
(
"
TEMP
_DIR"
))
.
joinpath
(
params
[
"dir"
])
if
not
target_dir
.
exists
():
return
response_result
(
ResponseCode
.
INVAILD_REQUEST
,
msg
=
"target directory not exists"
)
...
...
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