Commit b087a528 by sikang

update script

parent 9f3aaf09
......@@ -35,8 +35,8 @@ then
elif (($commod == '6'))
then
chmod a+x move_buildconfig.py
./.py
chmod a+x update_yitu.py
./update_yitu.py
fi
\ No newline at end of file
......@@ -17,9 +17,9 @@ def new_func_code():
"\t\t\tfinishForResult(true, "");\n" + \
"\t\t}\n" + \
"\t}\n"
return code
def remove_res(path):
def add_func(path):
# print("processing content: %s..." % path)
with open(path, "r", encoding="utf-8") as f:
# readlines以列表的形式将文件读出
......@@ -39,4 +39,4 @@ for root, dirs, files in os.walk("../../../app/src/main"):
if file.endswith("FaceDetectActivity.java"):
# get the path of the java file
path = os.path.join(directory, file)
remove_res(path)
\ No newline at end of file
add_func(path)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment