示例#1
0
	def setOutputFilename( self, name ):
		check_for_path_or_none( name, 'The output filename must be a non-empty string, or None.' )
		self.__outputFilename = name
示例#2
0
	def setLocalDir( self, localDir ):
		check_for_path_or_none( localDir, 'The local directory must be a nonempty string!' )
		self.__localDir = localDir
示例#3
0
	def setUploadLocation( self, location ):
		check_for_path_or_none( location, 'The upload location must be a nonempty string!' )
		self.__uploadLocation = location
示例#4
0
	def setSourcePath( self, path ):
		check_for_path_or_none( path, "Please specify a valid source path" )
		self.__sourceLocation = path
示例#5
0
	def setDestinationPath( self, path ):
		check_for_path_or_none( path, "Please specify a valid destination path" )
		self.__targetLocation = path
示例#6
0
	def setSourceDir( self, srcDir ):
		check_for_path_or_none( srcDir, 'The source directory needs to be a non-empty string!' )
		self.__srcDir = srcDir
示例#7
0
	def setDocsDir( self, dir ):
		check_for_path_or_none( dir , 'The docs directory must be a non-empty string or path!' )
		self.__docsDir = dir
示例#8
0
	def setHtmlOutputPath( self, path ):
		check_for_path_or_none( path, 'The HTML output path must be a file system path!' )
		self.__htmlPath = path
示例#9
0
	def setPyLintRcFile( self, file ):
		check_for_path_or_none( file, 'The pylint RC file must be a path!' )
		self.__rcFile = file
示例#10
0
	def setPackagesDir( self, path ):
		'''Return the packages directory for this object. 
		All data files produced by the build should be stored in the packages directory.'''
		check_for_path_or_none( path, "The packages directory name must be a string containing a path name." )
		self.__packagesDir = path
示例#11
0
	def setLogDir( self, path ):
		"""Set the directory where all log information is stored."""
		check_for_path_or_none( path, "The log directory name must be a string containing a path name." )
		self.__logDir = path
示例#12
0
	def setTestProgram( self, program ):
		check_for_path_or_none( program, 'The test program must be a Python executable!' )
		self.__program = program