(path, input_file)
return path
Given the input file to which a rule applied, string substitute a path.

  Arguments:
    path: a path to string expand
    input_file: the file to which the rule applied.
  Returns:
    The string substituted path.
Given the input file to which a rule applied, string substitute a path.
Given the input file to which a rule applied string substitute a path .
def _RuleExpandPath(path, input_file):
  """Given the input file to which a rule applied, string substitute a path.

  Arguments:
    path: a path to string expand
    input_file: the file to which the rule applied.
  Returns:
    The string substituted path.
  """
  path = path.replace('$(InputName)',
                      os.path.splitext(os.path.split(input_file)[1])[0])
  path = path.replace('$(InputDir)', os.path.dirname(input_file))
  path = path.replace('$(InputExt)',
                      os.path.splitext(os.path.split(input_file)[1])[1])
  path = path.replace('$(InputFileName)', os.path.split(input_file)[1])
  path = path.replace('$(InputPath)', input_file)
  return path
def _RuleExpandPath ( path , input_file ) : path = path . replace ( '$(InputName)' , os . path . splitext ( os . path . split ( input_file ) [ 1 ] ) [ 0 ] ) path = path . replace ( '$(InputDir)' , os . path . dirname ( input_file ) ) path = path . replace ( '$(InputExt)' , os . path . splitext ( os . path . split ( input_file ) [ 1 ] ) [ 1 ] ) path = path . replace ( '$(InputFileName)' , os . path . split ( input_file ) [ 1 ] ) path = path . replace ( '$(InputPath)' , input_file ) return path