Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
16 lines
631 B
Diff
16 lines
631 B
Diff
diff --git a/qt/aqt/profiles.py b/qt/aqt/profiles.py
|
|
index 469908c1b2..34612d6e08 100644
|
|
--- a/qt/aqt/profiles.py
|
|
+++ b/qt/aqt/profiles.py
|
|
@@ -310,7 +310,9 @@ def profileFolder(self, create: bool = True) -> str:
|
|
return path
|
|
|
|
def addonFolder(self) -> str:
|
|
- return self._ensureExists(os.path.join(self.base, "addons21"))
|
|
+ path = Path(os.environ.get("ANKI_ADDONS") or Path(self.base) / "addons21")
|
|
+ path.mkdir(parents=True, exist_ok=True)
|
|
+ return str(path.resolve())
|
|
|
|
def backupFolder(self) -> str:
|
|
return self._ensureExists(os.path.join(self.profileFolder(), "backups"))
|