Ask a question to get started
Enter to send•Shift+Enter new line
Get the path of the file as a relative path to the package directory.
get_relative_path( file: Path | str, *, relative_to: Path = PACKAGE_DIR ) -> str
file
Path | str
The file path to convert.
relative_to
Path
PACKAGE_DIR
The base path to make the file path relative to.