Commit b087a528 by sikang

update script

parent 9f3aaf09
...@@ -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
...@@ -17,9 +17,9 @@ def new_func_code(): ...@@ -17,9 +17,9 @@ def new_func_code():
"\t\t\tfinishForResult(true, "");\n" + \ "\t\t\tfinishForResult(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
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