parameters: (path, input_file)
return_statement: return path
docstring: 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.
docstring_summary: Given the input file to which a rule applied, string substitute a path.
docstring_tokens: Given the input file to which a rule applied string substitute a path .
function: 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
function_tokens: 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