mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00

Includes a hack that should allow existing imports to continue to work; if this breaks things for you, please let me know.
21 lines
667 B
Python
21 lines
667 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
import anki.scheduler.base as _base
|
|
|
|
UnburyCurrentDeck = _base.UnburyCurrentDeck
|
|
CongratsInfo = _base.CongratsInfo
|
|
BuryOrSuspend = _base.BuryOrSuspend
|
|
|
|
# add aliases to the legacy pathnames
|
|
import anki.scheduler.v1
|
|
import anki.scheduler.v2
|
|
|
|
sys.modules["anki.sched"] = sys.modules["anki.scheduler.v1"]
|
|
sys.modules["anki.schedv2"] = sys.modules["anki.scheduler.v2"]
|
|
anki.sched = sys.modules["anki.scheduler.v1"] # type: ignore
|
|
anki.schedv2 = sys.modules["anki.scheduler.v2"] # type: ignore
|