diff options
author | ThanosApollo <[email protected]> | 2022-09-01 07:41:39 +0300 |
---|---|---|
committer | ThanosApollo <[email protected]> | 2022-09-01 07:41:39 +0300 |
commit | 0c89df9be987008e55c1b336489c41290653434b (patch) | |
tree | 73425d852d363acdd6c9297a97616b23f9311bd4 /.local/share/Anki2/addons21/Background_and_gear/config.py | |
parent | a6d1ec012952c5e955676af22732cd177d1f3abf (diff) |
Remove anki addons
Diffstat (limited to '.local/share/Anki2/addons21/Background_and_gear/config.py')
-rw-r--r-- | .local/share/Anki2/addons21/Background_and_gear/config.py | 44 |
1 files changed, 0 insertions, 44 deletions
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) |