def AdjustFilePathToBaseDirectory(filepath, base_dir):

  return os.path.relpath(filepath, base_dir)
Adjust filepath, `filepath` to base directory, `base_dir`.
dataset/ETHPy150Open spranesh/Redhawk/redhawk/utils/util.py/AdjustFilePathToBaseDirectory