Commit 8eef628a by sikang

udpate script

parent 9833dc57
......@@ -14,7 +14,7 @@ def close_sdk(path, sdk):
with open(path, "w", encoding="utf-8") as f_w:
is_sdk_code = False
for line in lines:
mark ="//SDK-" + sdk + "-CODE\t";
mark ="//SDK-" + sdk + "-CODE ->";
if is_sdk_code and mark not in line:
line = mark + line
......@@ -29,7 +29,7 @@ def close_sdk(path, sdk):
def open_sdk(path, sdk):
# print("processing content: %s..." % path)
code_mark = "//SDK-" + sdk + "-CODE\t"
code_mark = "//SDK-" + sdk + "-CODE ->"
with open(path, "r", encoding="utf-8") as f:
# readlines以列表的形式将文件读出
lines = f.readlines()
......
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