def Get_List_from_Shared_Variables(list_name):
try:
sModuleInfo = inspect.stack()[0][3] + " : " + inspect.getmoduleinfo(__file__).name
global shared_variables
if list_name == '' or list_name == None: # if input is invalid
return "failed"
else:
if list_name in shared_variables:
list = shared_variables[list_name]
CommonUtil.ExecLog(sModuleInfo, "List: " + list_name + " is: " + str(list), 1)
return list
else:
CommonUtil.ExecLog(sModuleInfo, "List named %s does not exist on shared variables" % list_name, 3)
return "failed"
except:
CommonUtil.Exception_Handler(sys.exc_info())
BuiltInFunctionSharedResources.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录