Skip to content

Commit

Permalink
Merge branch 'fix2023compat' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Davis authored and Luke Davis committed Jun 13, 2024
2 parents 592831b + 99d4aa3 commit 344aacd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions addon/globalPlugins/addonUpdater/addonUpdateProc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
from logHandler import log
import gui
import extensionPoints
from NVDAState import WritePaths
try:
# NVDA versions below 2024.1 do not support this
from NVDAState import WritePaths
addonsDir: str = WritePaths.addonsDir
except Exception:
addonsDir: str = os.path.join(globalVars.appArgs.configPath, "addons")

from . import addonUtils

Expand Down Expand Up @@ -239,7 +244,7 @@ def installAddonUpdate(destPath: str, addonName: str) -> int:
# as having updates, even though it's just a different instance of the same version.
# The real cause is the older version listed in the store JSON, but the UI can't represent that.
oldStoreRecord: str = os.path.join(
WritePaths.addonsDir,
addonsDir,
bundleName + ".json"
)
try:
Expand Down

0 comments on commit 344aacd

Please sign in to comment.