Fix python deprecation warning

This commit is contained in:
Nyall Dawson 2016-11-07 10:03:15 +10:00
parent 54522fd590
commit 272cd38018

View File

@ -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])