sglang_v0.5.2/vision_0.22.1/test/_utils_internal.py

8 lines
207 B
Python

import os
# Get relative file path
# this returns relative path from current file.
def get_relative_path(curr_file, *path_components):
return os.path.join(os.path.dirname(curr_file), *path_components)