Skip to content
Snippets Groups Projects
Verified Commit 2c1009a7 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Rework `get_version` to not rely on import

What did I drink when I wrote the original code? The relative import
`from .. import __version__` in the utility code in core, of course,
always imported from `aleksis.core`, no matter the real `AppConfig`
that inherited the utility code. Thus, the versions always showed the
version of AlekSIS-Core everywhere (whose version information was
broken ever since we renamed AlekSIS to AlekSIS-Core).

This change decouples the `get_version` code from the package level
`__version__` information, which effectively becomes optional now.
parent 0ead6f79
1 merge request!487Resolve "[About] Shows versions as "unknown""
Pipeline #5835 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment