(command, cwd=None, shell=False, raiseOnError=False)
return returncode
Executes a child process and waits for it to complete
Executes a child process and waits for it to complete
Executes a child process and waits for it to complete
def run(command, cwd=None, shell=False, raiseOnError=False):
		"""
		Executes a child process and waits for it to complete
		"""
		
		# If verbose output is enabled, print the command that will be executed
		Utility._printCommand(command)
		
		returncode = subprocess.call(command, cwd=cwd, shell=shell)
		if raiseOnError == True and returncode != 0:
			raise Exception('child process ' + str(command) + ' failed with exit code ' + str(returncode))
		return returncode
def run ( command , cwd = None , shell = False , raiseOnError = False ) : # If verbose output is enabled, print the command that will be executed Utility . _printCommand ( command ) returncode = subprocess . call ( command , cwd = cwd , shell = shell ) if raiseOnError == True and returncode != 0 : raise Exception ( 'child process ' + str ( command ) + ' failed with exit code ' + str ( returncode ) ) return returncode