def GetRelativeFilePath(filepath):
  if os.path.exists(filepath):
    return os.path.relpath(filepath)

  return GetDBPathRelativeToCurrentDirectory(filepath)
Try to open the file. If not, we try to open the filepath as one
dataset/ETHPy150Open spranesh/Redhawk/redhawk/utils/util.py/GetRelativeFilePath