Skip to content

Commit

Permalink
modify extend plug function
Browse files Browse the repository at this point in the history
Add CommonWeb Admin Pass list for extend plug
  • Loading branch information
LandGrey committed Apr 18, 2017
1 parent 7309617 commit 4d2d899
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions plugins/extend.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,10 @@ def get_extend_dic(rawlist, encodeflag='none', need_passcratch=False):
storepath = os.path.join(get_result_store_path(), "%s_%s_%s%s" % (prefix, get_buildtime(), encodeflag, filextension))
with open(storepath, "a") as f:
try:
if need_passcratch:
with open(os.path.join(build_in_dict_path, 'CommonWebAdminPass.txt'), 'r') as wap:
for _ in wap.readlines():
if _.strip() != '' and _.strip()[0] != annotator:
f.write(operator.get(encodeflag)(str(_).strip() + CRLF))
with open(os.path.join(build_in_dict_path, 'CommonWebAdminPass.txt'), 'r') as wap:
for _ in wap.readlines():
if _.strip() != '' and _.strip()[0] != annotator:
f.write(operator.get(encodeflag)(str(_).strip() + CRLF))
for _ in extend_enter(rawlist):
f.write(operator.get(encodeflag)(str(_) + CRLF))
except:
Expand Down

0 comments on commit 4d2d899

Please sign in to comment.