本文整理汇总了Python中EDParallelExecute.EDParallelExecute.cleanUp方法的典型用法代码示例。如果您正苦于以下问题:Python EDParallelExecute.cleanUp方法的具体用法?Python EDParallelExecute.cleanUp怎么用?Python EDParallelExecute.cleanUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EDParallelExecute.EDParallelExecute
的用法示例。
在下文中一共展示了EDParallelExecute.cleanUp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: int
# 需要导入模块: from EDParallelExecute import EDParallelExecute [as 别名]
# 或者: from EDParallelExecute.EDParallelExecute import cleanUp [as 别名]
mode = "dirwatch"
elif i.lower().find("-all") in [0, 1]:
newerOnly = False
elif i.lower().find("-debug") in [0, 1]:
debug = True
elif i.lower().find("-ncpu") in [0, 1]:
iNbCPU = int(i.split("=", 1)[1])
elif os.path.exists(i):
paths.append(os.path.abspath(i))
if len(paths) == 0:
if mode == "OffLine":
print "This is the SPD-Correct application of %s, \nplease give a path to process offline or the option:\n\
--online to process online incoming data in the given directory.\n\
--all to process all existing files (unless they will be excluded)\n\
--debug to turn on debugging mode in EDNA\n\
--nCPU=xxx to specify the number of CPUs to use. Usually it auto-detects the number of processors." % EDNAPluginName
sys.exit()
else:
paths = [os.getcwd()]
listKeys = dictConfig.keys()
listKeys.sort()
for key in listKeys:
val = raw_input("%s [%s] ?" % (key, dictConfig[key]))
if len(val) > 0:
dictConfig[key] = val
edna = EDParallelExecute(EDNAPluginName, fileName2xml, _functXMLerr=XMLerr, _bVerbose=True, _bDebug=debug, _iNbThreads=iNbCPU)
edna.runEDNA(paths, mode , newerOnly)
edna.cleanUp(["killAllWorkers()"])