mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
db161c4f19
commit
9a23f0958d
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ class AddonManager:
|
||||||
if not os.path.exists(os.path.join(path, "__init__.py")):
|
if not os.path.exists(os.path.join(path, "__init__.py")):
|
||||||
continue
|
continue
|
||||||
l.append(d)
|
l.append(d)
|
||||||
|
l.sort()
|
||||||
|
if os.getenv("ANKIREVADDONS", ""):
|
||||||
|
l = reversed(l)
|
||||||
return l
|
return l
|
||||||
|
|
||||||
def managedAddons(self):
|
def managedAddons(self):
|
||||||
|
|
Loading…
Reference in a new issue