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

https://anki.tenderapp.com/discussions/ankidesktop/41495-using-file-export-closes-the-collection-on-mwcoldb-if-the-browser-window-is-open
17 lines
493 B
Python
17 lines
493 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
from typing import Optional
|
|
|
|
from anki.collection import _Collection
|
|
from anki.rsbackend import RustBackend
|
|
|
|
|
|
def Collection(
|
|
path: str,
|
|
backend: Optional[RustBackend] = None,
|
|
server: bool = False,
|
|
log: bool = False,
|
|
) -> _Collection:
|
|
"Open a new or existing collection. Path must be unicode."
|
|
return _Collection(path, backend, server, log)
|