mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 13:34:05 +00:00
Display astrcmp implementation (C or Python) in About and debug log
It can also be displayed using -V command line option along various libs versions
This commit is contained in:
@@ -36,5 +36,7 @@ def astrcmp_py(a,b):
|
||||
try:
|
||||
from picard.util._astrcmp import astrcmp as astrcmp_c
|
||||
astrcmp = astrcmp_c
|
||||
astrcmp_implementation = "C"
|
||||
except ImportError:
|
||||
astrcmp = astrcmp_py
|
||||
astrcmp_implementation = "Python"
|
||||
|
||||
@@ -23,6 +23,7 @@ from mutagen import version_string as mutagen_version
|
||||
from PyQt5.QtCore import PYQT_VERSION_STR as pyqt_version, QT_VERSION_STR
|
||||
from picard import PICARD_FANCY_VERSION_STR
|
||||
from picard.disc import discid_version
|
||||
from picard.util.astrcmp import astrcmp_implementation
|
||||
|
||||
|
||||
_versions = OrderedDict([
|
||||
@@ -31,6 +32,7 @@ _versions = OrderedDict([
|
||||
("qt-version", QT_VERSION_STR),
|
||||
("mutagen-version", mutagen_version),
|
||||
("discid-version", discid_version),
|
||||
("astrcmp", astrcmp_implementation),
|
||||
])
|
||||
|
||||
_names = {
|
||||
@@ -39,6 +41,7 @@ _names = {
|
||||
"qt-version": "Qt",
|
||||
"mutagen-version": "Mutagen",
|
||||
"discid-version": "Discid",
|
||||
"astrcmp": "astrcmp",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user