def check_exist(filepath):
sModuleInfo = inspect.stack()[0][3] + " : " + inspect.getmoduleinfo(__file__).name
try:
if os.path.isfile(filepath):
CommonUtil.ExecLog(sModuleInfo, "%s file is found." % filepath, 1)
return "Passed"
else:
CommonUtil.ExecLog(sModuleInfo, "%s file is not found." % filepath, 3)
return "Failed"
except Exception:
errMsg = "%s file existence is not checked." % filepath
return CommonUtil.Exception_Handler(sys.exc_info(), None, errMsg)
xmlValidation.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录