anki-sync-server/src/ankisyncd/__main__.py

13 lines
290 B
Python
Raw Normal View History

import sys
if __package__ is None and not hasattr(sys, "frozen"):
import os.path
2022-10-15 03:07:21 +08:00
path = os.path.realpath(os.path.abspath(__file__))
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
import ankisyncd.sync_app
if __name__ == "__main__":
ankisyncd.sync_app.main()