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
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
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
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