mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix python deprecation warning
This commit is contained in:
parent
54522fd590
commit
272cd38018
@ -90,7 +90,7 @@ def runandload(name, *args, **kwargs):
|
||||
|
||||
def version():
|
||||
pluginPath = os.path.split(os.path.dirname(__file__))[0]
|
||||
cfg = configparser.SafeConfigParser()
|
||||
cfg = configparser.ConfigParser()
|
||||
cfg.read(os.path.join(pluginPath, 'metadata.txt'))
|
||||
ver = cfg.get('general', 'version').split('.')
|
||||
return 10000 * int(ver[0]) + 100 * int(ver[1]) + int(ver[2])
|
||||
|
Loading…
x
Reference in New Issue
Block a user