dbs_annotator.utils.resources.resource_path

dbs_annotator.utils.resources.resource_path(relative_path)[source]

Get the absolute path to a resource file.

This function works both when running from source and when running from a frozen bundle that exposes resources via sys._MEIPASS.

Parameters:

relative_path (str) – Relative path to the resource file

Returns:

Absolute path to the resource file

Return type:

str