Fixed runtime error from changes in qt addons.py
Changes to meet returning of Iterable (rather than List), meant returning a different variable, but that may not have been created. Reverted, changing to return List.
This commit is contained in:
parent
3da0737a57
commit
d27e33a206
@ -179,7 +179,7 @@ class AddonManager:
|
|||||||
sys.path.insert(0, self.addonsFolder())
|
sys.path.insert(0, self.addonsFolder())
|
||||||
|
|
||||||
# in new code, you may want all_addon_meta() instead
|
# in new code, you may want all_addon_meta() instead
|
||||||
def allAddons(self) -> Iterable[str]:
|
def allAddons(self) -> List[str]:
|
||||||
l = []
|
l = []
|
||||||
for d in os.listdir(self.addonsFolder()):
|
for d in os.listdir(self.addonsFolder()):
|
||||||
path = self.addonsFolder(d)
|
path = self.addonsFolder(d)
|
||||||
@ -188,8 +188,8 @@ class AddonManager:
|
|||||||
l.append(d)
|
l.append(d)
|
||||||
l.sort()
|
l.sort()
|
||||||
if os.getenv("ANKIREVADDONS", ""):
|
if os.getenv("ANKIREVADDONS", ""):
|
||||||
it = reversed(l)
|
l = list(reversed(l))
|
||||||
return it
|
return l
|
||||||
|
|
||||||
def all_addon_meta(self) -> Iterable[AddonMeta]:
|
def all_addon_meta(self) -> Iterable[AddonMeta]:
|
||||||
return map(self.addon_meta, self.allAddons())
|
return map(self.addon_meta, self.allAddons())
|
||||||
|
Loading…
Reference in New Issue
Block a user