if WebSite and pathWebDoc: print "Generating web documentation in ", pathWebDoc rmdir(pathWebDoc, bypass=True) for oneproject in findProjects(pyStrEdnaHomePath): print ("Generating HTML pages for " + oneproject) docPath = os.path.join(pathWebDoc, oneproject) os.makedirs(docPath, int("755", 8)) listOfPythonFiles = findFile(os.path.join(pyStrEdnaHomePath, oneproject)) listOfPythonFiles.sort() if len(listOfPythonFiles) > 0: epydocJob = EDJob("EDPluginExecEpydocv1_0") dictJobs[oneproject] = epydocJob xsd = XSDataInputEpydoc() xsd.setDocPath(XSDataFile(XSDataString(docPath))) xsd.setProjectName(XSDataString(oneproject)) xsd.setDocType(XSDataString(docFormat)) if bVerbose: xsd.setVerbosity(XSDataInteger(1)) else: xsd.setVerbosity(XSDataInteger(-1)) xsd.setSources([XSDataFile(XSDataString(oneFile)) for oneFile in listOfPythonFiles]) epydocJob.setDataInput(xsd) epydocJob.execute() else: print ("Error: No python files for project %s" % oneproject) else: plugins = findPlugins(pyStrEdnaHomePath) pluginPathProcessed = [] for oneplugin in plugins: pluginPath = plugins[oneplugin]
print "Generating web documentation in ", pathWebDoc rmdir(pathWebDoc, bypass=True) for oneproject in findProjects(pyStrEdnaHomePath): print("Generating HTML pages for " + oneproject) docPath = os.path.join(pathWebDoc, oneproject) os.makedirs(docPath, int("755", 8)) listOfPythonFiles = findFile( os.path.join(pyStrEdnaHomePath, oneproject)) listOfPythonFiles.sort() if len(listOfPythonFiles) > 0: epydocJob = EDJob("EDPluginExecEpydocv1_0") dictJobs[oneproject] = epydocJob xsd = XSDataInputEpydoc() xsd.setDocPath(XSDataFile(XSDataString(docPath))) xsd.setProjectName(XSDataString(oneproject)) xsd.setDocType(XSDataString(docFormat)) if bVerbose: xsd.setVerbosity(XSDataInteger(1)) else: xsd.setVerbosity(XSDataInteger(-1)) xsd.setSources([ XSDataFile(XSDataString(oneFile)) for oneFile in listOfPythonFiles ]) epydocJob.setDataInput(xsd) epydocJob.execute() else: print("Error: No python files for project %s" % oneproject) else: plugins = findPlugins(pyStrEdnaHomePath)