def __init__( self, cmd, timeoutSeconds = None, combineOutput = False, searchPaths = None, captureOutput = True ): MObject.__init__( self ) check_for_list_of_paths( cmd, "The command must be a list of strings." ) self.__cmd = cmd if timeoutSeconds: check_for_positive_int( timeoutSeconds, "The timeout period must be a positive integer number! " ) self.__timeoutSeconds = timeoutSeconds self.__workingDir = None self.__captureOutput = captureOutput self.__combineOutput = combineOutput self.__stdOut = None self.__stdErr = None self.__returnCode = None self.__timedOut = False if searchPaths is None: self.__searchPaths = [] else: check_for_list_of_paths( searchPaths, "The search paths must be a list of strings." ) self.__searchPaths = searchPaths
def setJobs( self, jobs ): check_for_positive_int( jobs, 'The make tool number of jobs must be a positive integer.' ) self.__jobs = jobs
def _setVersionOutputLine( self, versionOutputLine ): check_for_positive_int( versionOutputLine, 'The make tool version output line must be a positive integer.' ) self.__versionOutputLine = versionOutputLine