Exemplo n.º 1
0
	def createFileList(self, filesDir, docsDir):
		"""Create a HTML list of the source files."""
		from DocSupport.FileList import FileList
		name = os.path.basename(filesDir)
		self.printMsg('Creating file list of %s...' % name)
		filelist = FileList(name)
		saveDir = os.getcwd()
		os.chdir(filesDir)
		try:
			filelist.readFiles('*.py')
			targetName = '../' + docsDir + '/FileList.html'
			self.printMsg('Creating %s...' % targetName)
			filelist.printForWeb(targetName)
		finally:
			os.chdir(saveDir)
Exemplo n.º 2
0
 def createFileList(self, filesDir, docsDir):
     """Create an HTML list of the source files."""
     from DocSupport.FileList import FileList
     name = filesDir.replace('/', '.')
     self.printMsg('Creating file list of %s...' % name)
     filelist = FileList(name)
     filesDir, subDir = (filesDir + '/').split('/', 1)
     saveDir = os.getcwd()
     os.chdir(filesDir)
     try:
         filelist.readFiles(subDir + '*.py')
         targetName = docsDir + '/FileList.html'
         self.printMsg('Creating %s...' % targetName)
         filelist.printForWeb('../' + targetName)
     finally:
         os.chdir(saveDir)
Exemplo n.º 3
0
 def createFileList(self, filesDir, docsDir):
     """Create an HTML list of the source files."""
     from DocSupport.FileList import FileList
     name = filesDir.replace('/', '.')
     self.printMsg('Creating file list of %s...' % name)
     filelist = FileList(name)
     filesDir, subDir = (filesDir + '/').split('/', 1)
     saveDir = os.getcwd()
     os.chdir(filesDir)
     try:
         filelist.readFiles(subDir + '*.py')
         targetName = docsDir + '/FileList.html'
         self.printMsg('Creating %s...' % targetName)
         filelist.printForWeb('../' + targetName)
     finally:
         os.chdir(saveDir)