anki/qt/runanki.py

20 lines
384 B
Python
Raw Normal View History

#!/usr/bin/env python3
2021-04-13 10:45:05 +02:00
# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import os
import sys
2021-04-13 10:45:05 +02:00
try:
import bazelfixes
bazelfixes.fix_pywin32_in_bazel()
bazelfixes.fix_extraneous_path_in_bazel()
except ImportError:
pass
import aqt
2020-11-01 07:16:19 +01:00
if not os.environ.get("ANKI_IMPORT_ONLY"):
aqt.run()