jdxi_editor.resources
Resource path utilities for locating files in bundled applications.
Attributes
Functions
|
Return |
|
Directory that contains |
|
Resolve a path relative to the project / bundle root. |
Module Contents
- jdxi_editor.resources._macos_app_resources_dir() pathlib.Path | None[source]
Return
Contents/Resourcesfor a macOS.appbundle.sys.executableis…/MyApp.app/Contents/MacOS/MyAppunder py2app.
- jdxi_editor.resources._resource_base_path() str[source]
Directory that contains
resources/,doc/, etc.
- jdxi_editor.resources.resource_path(relative_path: str | pathlib.Path) str[source]
Resolve a path relative to the project / bundle root.
- Parameters:
relative_path – Path relative to the repository root (e.g.
resources/foo.png).- Returns:
Absolute path string.