load add-ons in consistent order

if ANKIREVADDONS env var is defined, reverse order for debugging

partially addresses pull req #225
This commit is contained in:
Damien Elmes 2018-02-24 13:23:15 +11:00
parent db161c4f19
commit 9a23f0958d

View file

@ -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):