mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
parent
b4c9e54347
commit
f5fb0fd9e6
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ except UnicodeEncodeError as exc:
|
||||||
# if sync server enabled, bypass the rest of the startup
|
# if sync server enabled, bypass the rest of the startup
|
||||||
if "--syncserver" in sys.argv:
|
if "--syncserver" in sys.argv:
|
||||||
from anki.syncserver import run_sync_server
|
from anki.syncserver import run_sync_server
|
||||||
|
from anki.utils import is_mac
|
||||||
|
|
||||||
|
from .package import _fix_protobuf_path
|
||||||
|
|
||||||
|
if is_mac and getattr(sys, "frozen", False):
|
||||||
|
_fix_protobuf_path()
|
||||||
|
|
||||||
# does not return
|
# does not return
|
||||||
run_sync_server()
|
run_sync_server()
|
||||||
|
|
Loading…
Reference in a new issue