def _RuleInputsAndOutputs(rule, trigger_file):
 raw_inputs = _FixPaths(rule.get('inputs', []))
 raw_outputs = _FixPaths(rule.get('outputs', []))
 inputs = OrderedSet()
 outputs = OrderedSet()
 inputs.add(trigger_file)
 for i in raw_inputs:
  inputs.add(_RuleExpandPath(i, trigger_file))
 for o in raw_outputs:
  outputs.add(_RuleExpandPath(o, trigger_file))
 return (inputs, outputs)

def _RuleInputsAndOutputs ( rule , trigger_file ) : raw_inputs = _FixPaths ( rule . get ( 'inputs' , [ ] ) ) raw_outputs = _FixPaths ( rule . get ( 'outputs' , [ ] ) ) inputs = OrderedSet ( ) outputs = OrderedSet ( ) inputs . add ( trigger_file ) for i in raw_inputs : inputs . add ( _RuleExpandPath ( i , trigger_file ) ) for o in raw_outputs : outputs . add ( _RuleExpandPath ( o , trigger_file ) ) return ( inputs , outputs )
find the inputs and outputs generated by a rule .