parameters: (conf, cmd, stdin=False)
return_statement: return (out, err)
docstring: Obtains Fortran command outputs
docstring_summary: Obtains Fortran command outputs
docstring_tokens: Obtains Fortran command outputs
function: def getoutput(conf, cmd, stdin=False):
  	"""
  	Obtains Fortran command outputs
  	"""
  	from waflib import Errors
  	if conf.env.env:
  		env = conf.env.env
  	else:
  		env = dict(os.environ)
  		env['LANG'] = 'C'
  	input = stdin and '\n'.encode() or None
  	try:
  		out, err = conf.cmd_and_log(cmd, env=env, output=0, input=input)
  	except Errors.WafError as e:
  		# An WafError might indicate an error code during the command
  		# execution, in this case we still obtain the stderr and stdout,
  		# which we can use to find the version string.
  		if not (hasattr(e, 'stderr') and hasattr(e, 'stdout')):
  			raise e
  		else:
  			# Ignore the return code and return the original
  			# stdout and stderr.
  			out = e.stdout
  			err = e.stderr
  	except Exception:
  		conf.fatal('could not determine the compiler version %r' % cmd)
  	return (out, err)
function_tokens: def getoutput ( conf , cmd , stdin = False ) : from waflib import Errors if conf . env . env : env = conf . env . env else : env = dict ( os . environ ) env [ 'LANG' ] = 'C' input = stdin and '\n' . encode ( ) or None try : out , err = conf . cmd_and_log ( cmd , env = env , output = 0 , input = input ) except Errors . WafError as e : # An WafError might indicate an error code during the command # execution, in this case we still obtain the stderr and stdout, # which we can use to find the version string. if not ( hasattr ( e , 'stderr' ) and hasattr ( e , 'stdout' ) ) : raise e else : # Ignore the return code and return the original # stdout and stderr. out = e . stdout err = e . stderr except Exception : conf . fatal ( 'could not determine the compiler version %r' % cmd ) return ( out , err )