コード例 #1
0
	def __init__( self, source = None, destination = None, ignorePatterns = None, overwrite = False ):
		CopyActionBase.__init__( self, sourceLocation = source, targetLocation = destination )

		self.__overwrite = overwrite

		if ignorePatterns == None:
			ignorePatterns = []
		check_for_list_of_strings( ignorePatterns, "The ignore patterns must be a list of strings." )
		self.__ignorePatterns = ignorePatterns
コード例 #2
0
ファイル: RegistryHelper.py プロジェクト: KDAB/Make-O-Matic
def getPathsFromRegistry( keys, pathsSuffix = None ):
	paths = []
	check_for_list_of_strings( keys, "keys must be a list of strings" )
	check_for_nonempty_string_or_none( pathsSuffix, "pathsSuffix must be a non-empty string or None" )
	for key in keys:
		path = getPathFromRegistry( key )
		if path:
			if pathsSuffix:
				path = os.path.normpath( os.path.join( path, pathsSuffix ) )
			paths.append( path )
	return paths
コード例 #3
0
ファイル: MakeTool.py プロジェクト: KDAB/Make-O-Matic
	def _setCommandSearchPaths( self, searchPaths ):
		if searchPaths == None:
			searchPaths = []
		check_for_list_of_strings( searchPaths, 'The make tool command search paths must be a list of strings' )
		self.__commandSearchPaths = searchPaths
コード例 #4
0
ファイル: EmailReporter.py プロジェクト: KDAB/Make-O-Matic
	def setRecipients( self, recipients ):
		"""If this is set, only these recipients will receive an email."""

		check_for_list_of_strings( recipients, "Please pass a valid list of recipients (strings)" )
		self.__recipientList = recipients