Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
cba58671
Commit
cba58671
authored
Nov 18, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
4f5bf85e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
python/func.py
+10
-6
No files found.
python/func.py
View file @
cba58671
...
...
@@ -384,13 +384,17 @@ class Function:
#copy logo
def
find_logo
(
self
,
config
):
path
=
"/Users/connor/Downloads/
%
s"
%
config
[
'corp_id'
]
file
=
{}
targets
=
{}
for
root
,
dirs
,
files
in
os
.
walk
(
path
):
for
file
in
files
:
if
"logo_512"
in
file
and
"logo"
not
in
file
.
keys
():
file
[
'logo'
]
=
file
if
"1024_500"
in
file
and
"top"
not
in
file
.
keys
():
file
[
'top'
]
=
file
if
"logo_512"
in
file
and
"logo"
not
in
targets
.
keys
():
targets
[
'logo'
]
=
os
.
path
.
join
(
root
,
file
)
if
"1024_500"
in
file
and
"top"
not
in
targets
.
keys
():
targets
[
'top'
]
=
os
.
path
.
join
(
root
,
file
)
img_path
=
"
%
s/app/src/main/res/drawable-xxhdpi"
%
config
[
'root'
]
shutil
.
copy
(
targets
[
'logo'
],
"
%
s/logo_majia.png"
%
img_path
)
shutil
.
copy
(
targets
[
'top'
],
"
%
s/top.png"
%
img_path
)
print
(
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