def run_raw(command):
 proc = subprocess.Popen(command, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, env=_make_env())
 data = proc.stdout.read()
 proc.wait()
 while (data.endswith('\n') or data.endswith('\r')):
  data = data[:(-1)]
 if data:
  data = '\n'.join([l for l in data.splitlines() if l])
  return data
 else:
  return ''

def run_raw ( command ) : proc = subprocess . Popen ( command , shell = True , stderr = subprocess . STDOUT , stdout = subprocess . PIPE , env = _make_env ( ) ) data = proc . stdout . read ( ) proc . wait ( ) while ( data . endswith ( '\n' ) or data . endswith ( '\r' ) ) : data = data [ : ( - 1 ) ] if data : data = '\n' . join ( [ l for l in data . splitlines ( ) if l ] ) return data else : return ''
runs the string command .