Fix Fedora
Fedora doesn't support importlib_metadata; instead it uses importlib.metadata. Since it works in everything else, the change is sensible.
This commit is contained in:
parent
8b6f4538e6
commit
739beb853c
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
# History of versions #
|
# History of versions #
|
||||||
|
|
||||||
|
* Version 4.21.3 (2026-02-19)
|
||||||
|
* Fixed fedora
|
||||||
|
|
||||||
* Version 4.21.2 (2026-02-18)
|
* Version 4.21.2 (2026-02-18)
|
||||||
* Fixed dependencies
|
* Fixed dependencies
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
import os
|
import os
|
||||||
import importlib_metadata
|
import importlib.metadata
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ class configuration(GObject.GObject):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
GObject.GObject.__init__(self)
|
GObject.GObject.__init__(self)
|
||||||
self.version = str(importlib_metadata.version("devedeng"))
|
self.version = str(importlib.metadata.version("devedeng"))
|
||||||
print("Version: " + self.version)
|
print("Version: " + self.version)
|
||||||
|
|
||||||
def _get_config_folder(self):
|
def _get_config_folder(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue