Skip to content

ll-in-anki/AnkiAddonReloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

AddonReloader

Anki addon to reload other addons. See the comments at the top of __init__.py for details.

Now working with v2.1.

AnkiWeb: https://ankiweb.net/shared/info/348783334.

Notes

  • If you do a git pull between reloads, need to restart anki
  • The folder of the addon must not contain dashes or anything that wouldn't work in a normal import statement
    • e.g. anki_LL, not anki-LL
  • Without modification, if your addon creates an action item in the Anki Tools menu, reloading it will create a duplicate item for each reload.
    • Solved with an addon_reloader_before method in the addon's __init__.py:
      • for action in mw.form.menuTools.actions():
          if action.text() == ADDON_ACTION_NAME:
            mw.form.menuTools.removeAction(action)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%