tools/metrics/common/path_util.py
def GetInputFile(src_relative_file_path):
  """Converts a src/-relative file path into a path that can be opened."""
  depth = [os.path.dirname(__file__), '..', '..', '..']
  path = os.path.join(*(depth + src_relative_file_path.split('/')))
  return os.path.abspath(path)
Converts a src/-relative file path into a path that can be opened.
Converts a src/-relative file path into a path that can be opened.
Converts a src / - relative file path into a path that can be opened .
def GetInputFile(src_relative_file_path):
  depth = [os.path.dirname(__file__), '..', '..', '..']
  path = os.path.join(*(depth + src_relative_file_path.split('/')))
  return os.path.abspath(path)
def GetInputFile ( src_relative_file_path ) : depth = [ os . path . dirname ( __file__ ) , '..' , '..' , '..' ] path = os . path . join ( * ( depth + src_relative_file_path . split ( '/' ) ) ) return os . path . abspath ( path )
Converts a src/-relative file path into a path that can be opened.
Converts a src / - relative file path into a path that can be opened .
"""Converts a src/-relative file path into a path that can be opened."""
src_relative_file_path