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
b087a528
Commit
b087a528
authored
Apr 21, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
9f3aaf09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
script/code/code_sync.sh
+3
-2
script/code/update_yitu.py
+4
-4
No files found.
script/code/code_sync.sh
View file @
b087a528
...
@@ -35,8 +35,8 @@ then
...
@@ -35,8 +35,8 @@ then
elif
((
$commod
==
'6'
))
elif
((
$commod
==
'6'
))
then
then
chmod a+x
move_buildconfig
.py
chmod a+x
update_yitu
.py
./.py
./
update_yitu
.py
fi
fi
\ No newline at end of file
script/code/update_yitu.py
100644 → 100755
View file @
b087a528
...
@@ -17,9 +17,9 @@ def new_func_code():
...
@@ -17,9 +17,9 @@ def new_func_code():
"
\t\t\t
finishForResult(true, "");
\n
"
+
\
"
\t\t\t
finishForResult(true, "");
\n
"
+
\
"
\t\t
}
\n
"
+
\
"
\t\t
}
\n
"
+
\
"
\t
}
\n
"
"
\t
}
\n
"
return
code
def
add_func
(
path
):
def
remove_res
(
path
):
# print("processing content: %s..." % path)
# print("processing content: %s..." % path)
with
open
(
path
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
with
open
(
path
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
# readlines以列表的形式将文件读出
# readlines以列表的形式将文件读出
...
@@ -39,4 +39,4 @@ for root, dirs, files in os.walk("../../../app/src/main"):
...
@@ -39,4 +39,4 @@ for root, dirs, files in os.walk("../../../app/src/main"):
if
file
.
endswith
(
"FaceDetectActivity.java"
):
if
file
.
endswith
(
"FaceDetectActivity.java"
):
# get the path of the java file
# get the path of the java file
path
=
os
.
path
.
join
(
directory
,
file
)
path
=
os
.
path
.
join
(
directory
,
file
)
remove_res
(
path
)
add_func
(
path
)
\ No newline at end of file
\ No newline at end of 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