Get version from package instead of config
This commit is contained in:
parent
a937b0a5e2
commit
779a4d4ce3
|
@ -34,6 +34,7 @@ from shutil import rmtree
|
|||
import configparser
|
||||
from pkg_resources import parse_version
|
||||
|
||||
import gajim
|
||||
from gajim.common import app
|
||||
from gajim.common import nec
|
||||
from gajim.common import configpaths
|
||||
|
@ -536,7 +537,7 @@ class PluginManager(metaclass=Singleton):
|
|||
min_v = conf.get('info', 'min_gajim_version', fallback=None)
|
||||
max_v = conf.get('info', 'max_gajim_version', fallback=None)
|
||||
|
||||
gajim_v = app.config.get('version').split('+', 1)[0]
|
||||
gajim_v = gajim.__version__.split('+', 1)[0]
|
||||
gajim_v_cmp = parse_version(gajim_v)
|
||||
|
||||
if min_v and gajim_v_cmp < parse_version(min_v):
|
||||
|
|
Loading…
Reference in New Issue