Commit e7196529 by BoxuanXu

move rm code

1 parent b794915d
Showing with 10 additions and 9 deletions
......@@ -89,14 +89,6 @@ def get_path_from_db(modelid,seetanet_model):
#Driver converter model by params and model graph
Run_Converter(params_name,graph_name,seetanet_model)
#remove params file and graph file
try:
cmd_str = "rm -rf " + params_name + " " + graph_name
print(cmd_str)
subprocess.check_call(cmd_str,shell=True)
except subprocess.CalledProcessError as err:
logging.info("shell command error!")
return None,None
return params_name,graph_name
def upload_filetoFastDFS(params_name, graph_name,seetanet_model):
......@@ -145,7 +137,16 @@ def Dirver_Convert():
sdk_fid = "group2/M00/00/04/wKgB61l-xXKARFT0AAANtlf6yRo13.json"
update_pkg_info_db(modelid,sdk_fid,stmodel_fid)
logging.info("successfully,Finish!")
#remove params file and graph file
try:
cmd_str = "rm -rf " + params_name + " " + graph_name + " " + seetanet_model
print(cmd_str)
subprocess.check_call(cmd_str,shell=True)
except subprocess.CalledProcessError as err:
logging.info("shell command error!")
return "finish"
logging.info("successfully,Finish!")
finally:
db_atlas.close()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!