#NEWLINE# def run( cmd , **kwargs ) : #NEWLINE# #INDENT# 'wrapper around invoke.run that accepts a Popen list' #NEWLINE# if isinstance ( cmd , list ) : #NEWLINE# #INDENT# cmd = ' ' . join ( ( pipes . quote ( s ) for s in cmd ) ) #NEWLINE# #UNINDENT# kwargs . setdefault ( 'echo' , True ) #NEWLINE# return invoke_run ( cmd , ** kwargs )