fix updater

This commit is contained in:
marco
2020-02-22 11:34:51 +01:00
parent 0767a0ed5a
commit 0f179bc7d8

View File

@@ -116,6 +116,8 @@ def check(background=False):
try:
localFile = io.open(addonDir + file["filename"], 'r+', encoding="utf8")
text = localFile.read()
if not PY3:
text = text.decode('utf-8')
except IOError: # nuovo file
# crea le cartelle se non esistono
dirname = os.path.dirname(addonDir + file["filename"])