def Get_Shared_Variables(key):
try:
sModuleInfo = inspect.stack()[0][3] + " : " + inspect.getmoduleinfo(__file__).name
global shared_variables
if key == '' or key == None: # if input is invalid
return "failed"
else:
if key in shared_variables:
value = shared_variables[key]
CommonUtil.ExecLog(sModuleInfo, "Variable value of '%s' is: %s" % (str(key), value), 0)
return value
else:
CommonUtil.ExecLog(sModuleInfo, "No Such variable named '%s' found in shared variables" % key, 3)
return "failed"
except:
CommonUtil.Exception_Handler(sys.exc_info())
BuiltInFunctionSharedResources.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录