#NEWLINE# def call( command , pipe = None ) : #NEWLINE# #INDENT# '\n    Copy of call() function from catkin-generate-debian to mimic output\n    ' #NEWLINE# working_dir = '.' #NEWLINE# process = Popen ( command , stdout = pipe , stderr = pipe , cwd = working_dir ) #NEWLINE# ( output , unused_err ) = process . communicate ( ) #NEWLINE# retcode = process . poll ( ) #NEWLINE# if retcode : #NEWLINE# #INDENT# raise CalledProcessError ( retcode , command ) #NEWLINE# #UNINDENT# if pipe : #NEWLINE# #INDENT# return output