Skip to content

Commit

Permalink
Correction
Browse files Browse the repository at this point in the history
installTasks.py again needed
  • Loading branch information
ruifontes committed Jun 20, 2021
1 parent 1353e58 commit 6d98e48
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions addon/installTasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#-*- coding: utf-8 -*-
# Part of frequentText add-on for NVDA.
# written by Rui Fontes <[email protected]>

import os
import globalVars
import addonHandler

def onInstall():
configFilePath = os.path.abspath(os.path.join(globalVars.appArgs.configPath, "addons", "frequentText", "globalPlugins", "frequentText", "frequentText.ini"))
if os.path.isfile(configFilePath):
os.remove(os.path.abspath(os.path.join(globalVars.appArgs.configPath, "addons", "frequentText" + addonHandler.ADDON_PENDINGINSTALL_SUFFIX, "globalPlugins", "frequentText", "frequentText.ini")))
os.rename(configFilePath, os.path.abspath(os.path.join(globalVars.appArgs.configPath, "addons", "frequentText" + addonHandler.ADDON_PENDINGINSTALL_SUFFIX, "globalPlugins", "frequentText", "frequentText.ini")))

0 comments on commit 6d98e48

Please sign in to comment.