def update(otbDir): modulesRoot = op.join(otbDir,"Modules") [groups,moduleList,sourceList,testList] = sourceAPI.parseModuleRoot(modulesRoot) for (m,files) in moduleList.iteritems(): for f in files: if f.endswith(".h"): content = documentationCheck.parserHeader(op.join(otbDir,f),m) fd = open(op.join(otbDir,f),'wb') fd.writelines(content) fd.close()
def update(otbDir): modulesRoot = op.join(otbDir, "Modules") [groups, moduleList, sourceList, testList] = sourceAPI.parseModuleRoot(modulesRoot) for (m, files) in moduleList.iteritems(): for f in files: if f.endswith(".h"): content = documentationCheck.parserHeader( op.join(otbDir, f), m) fd = open(op.join(otbDir, f), 'wb') fd.writelines(content) fd.close()
missingf.close() print("listed {0} missing files to logs/missingFiles.log" ).format(numOfMissingFiles) moduleList = moduleDic.keys() # after move, operate a documentation check for source in sourceList: outputPath = op.join( op.join(HeadOfModularOTBTree, "Modules"), op.join(source["group"], op.join(source["module"], source["subDir"]))) outputFile = op.join(outputPath, op.basename(source["path"])) if op.isfile(outputFile): if op.splitext(outputFile)[1] == ".h": nextContent = documentationCheck.parserHeader( outputFile, source["module"]) fd = open(outputFile, 'wb') fd.writelines(nextContent) fd.close() # get dependencies (if file is present) dependencies = {} testDependencies = {} exDependencies = {} for mod in moduleList: dependencies[mod] = [] testDependencies[mod] = [] exDependencies[mod] = [] if op.isfile(EdgePath): fd = open(EdgePath, 'rb')
else: missingf.write(inputfile+'\n') numOfMissingFiles = numOfMissingFiles + 1 missingf.close() print ("listed {0} missing files to logs/missingFiles.log").format(numOfMissingFiles) moduleList = moduleDic.keys() # after move, operate a documentation check for source in sourceList: outputPath = op.join(op.join(HeadOfModularOTBTree,"Modules"),op.join(source["group"],op.join(source["module"],source["subDir"]))) outputFile = op.join(outputPath,op.basename(source["path"])) if op.isfile(outputFile): if op.splitext(outputFile)[1] == ".h": nextContent = documentationCheck.parserHeader(outputFile,source["module"]) fd = open(outputFile,'wb') fd.writelines(nextContent) fd.close() # get dependencies (if file is present) dependencies = {} testDependencies = {} exDependencies = {} for mod in moduleList: dependencies[mod] = [] testDependencies[mod] = [] exDependencies[mod] = [] if op.isfile(EdgePath):