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
e1dbe892
Commit
e1dbe892
authored
Aug 31, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(修复字节码打包工具路径问题):
parent
e58446a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
backend/view/api.py
backend/view/api.py
+3
-2
No files found.
backend/view/api.py
View file @
e1dbe892
...
@@ -174,7 +174,7 @@ def action_build():
...
@@ -174,7 +174,7 @@ def action_build():
for
f
in
request
.
files
.
getlist
(
'binfile'
):
for
f
in
request
.
files
.
getlist
(
'binfile'
):
target
=
target_path
.
joinpath
(
f
.
filename
)
target
=
target_path
.
joinpath
(
f
.
filename
)
if
target
.
suffix
not
in
[
".evue"
,
".js"
,
".css"
,
".hml"
,
".json"
]:
if
target
.
suffix
not
in
[
".evue"
,
".js"
,
".css"
,
".hml"
]:
continue
continue
with
open
(
target
.
resolve
()
.
as_posix
(),
"wb+"
)
as
fd
:
with
open
(
target
.
resolve
()
.
as_posix
(),
"wb+"
)
as
fd
:
...
@@ -206,7 +206,8 @@ def action_build():
...
@@ -206,7 +206,8 @@ def action_build():
# new_name = "{}.{}".format(Path(file).name, "bc")
# new_name = "{}.{}".format(Path(file).name, "bc")
# os.rename(os.sep.join([os.getcwd(), "executable.bc"]), os.sep.join([os.getcwd(), new_name]))
# os.rename(os.sep.join([os.getcwd(), "executable.bc"]), os.sep.join([os.getcwd(), new_name]))
# dst_files.append(Path(os.getcwd()).joinpath(new_name))
# dst_files.append(Path(os.getcwd()).joinpath(new_name))
dst_files
.
append
(
Path
(
file
))
t
=
Path
(
file
)
dst_files
.
append
(
t
.
parent
.
joinpath
(
"{}.{}"
.
format
(
t
.
name
,
"bc"
)))
for
file
in
dst_files
:
for
file
in
dst_files
:
z
.
write
(
file
.
resolve
()
.
as_posix
(),
arcname
=
file
.
name
)
z
.
write
(
file
.
resolve
()
.
as_posix
(),
arcname
=
file
.
name
)
...
...
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