jdxi_editor package

Subpackages

Submodules

jdxi_editor.globals module

jdxi_editor.main module

jdxi_editor.project module

Project metadata and version information for JD-Xi Editor.

jdxi_editor.project.package_version(version: str = '1.0.2') → str[source]

The version for the Linux packages (.deb, .rpm, AppImage names).

dpkg and rpm order «1.0.0rc1» and «1.0.0b2» after «1.0.0»: a release candidate or a beta installed from a package would never be offered the finished release. A «~» sorts before anything, so a pre-release becomes «1.0.0~rc1», «1.0.0~b2», «1.0.0~dev3»; a final version stays as it is.

Parameters:

version – a PEP 440 version (default: this one)

Returns:

str the same version, pre-releases with «~»

jdxi_editor.resources module

Resource path utilities for locating files in bundled applications.

jdxi_editor.resources.resource_path(relative_path: str | 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.

Module contents