From aeb7f1457eb5fa0591f2f1020d83a616d9b1fcb6 Mon Sep 17 00:00:00 2001 From: ThanosApollo Date: Sat, 1 Oct 2022 08:37:56 +0300 Subject: Remove anki add ons --- .../Anki2/addons21/Background_and_gear/config.py | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 .local/share/Anki2/addons21/Background_and_gear/config.py (limited to '.local/share/Anki2/addons21/Background_and_gear/config.py') diff --git a/.local/share/Anki2/addons21/Background_and_gear/config.py b/.local/share/Anki2/addons21/Background_and_gear/config.py deleted file mode 100644 index da450d7..0000000 --- a/.local/share/Anki2/addons21/Background_and_gear/config.py +++ /dev/null @@ -1,44 +0,0 @@ -import os - -from aqt import mw - - -addon_path = os.path.dirname(__file__) -addonfoldername = os.path.basename(addon_path) - - -def gc(arg="", fail=False): - conf = mw.addonManager.getConfig(__name__) - if conf: - if arg: - return conf.get(arg, fail) - else: - return conf - return fail - - -userOption = None - -def _getUserOption(refresh): - global userOption - if userOption is None or refresh: - userOption = mw.addonManager.getConfig(__name__) - - -def getUserOption(key=None, default=None, refresh=False): - _getUserOption(refresh) - if key is None: - return userOption - if key in userOption: - return userOption[key] - else: - return default - - -def writeConfig(configToWrite=userOption): - mw.addonManager.writeConfig(__name__, configToWrite) - - -def getDefaultConfig(): - addon = __name__.split(".")[0] - return mw.addonManager.addonConfigDefaults(addon) -- cgit v1.2.3