From 9a23f0958d8bff8d0df1210c39fa18a92d9105bd Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 24 Feb 2018 13:23:15 +1100 Subject: [PATCH] load add-ons in consistent order if ANKIREVADDONS env var is defined, reverse order for debugging partially addresses pull req #225 --- aqt/addons.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/addons.py b/aqt/addons.py index a98524fef..8fa20dcfb 100644 --- a/aqt/addons.py +++ b/aqt/addons.py @@ -35,6 +35,9 @@ class AddonManager: if not os.path.exists(os.path.join(path, "__init__.py")): continue l.append(d) + l.sort() + if os.getenv("ANKIREVADDONS", ""): + l = reversed(l) return l def managedAddons(self):