mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
delay import unti run() so that build doesn't require libanki
This commit is contained in:
parent
23295451fa
commit
5db1a2fd69
1 changed files with 3 additions and 3 deletions
|
@ -25,14 +25,14 @@ if hasattr(sys, "frozen"):
|
||||||
|
|
||||||
# we bundle icons_rc as part of the anki source
|
# we bundle icons_rc as part of the anki source
|
||||||
sys.path.append(os.path.dirname(__file__))
|
sys.path.append(os.path.dirname(__file__))
|
||||||
import forms
|
|
||||||
import config
|
|
||||||
import ui
|
|
||||||
|
|
||||||
# App initialisation
|
# App initialisation
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
import forms
|
||||||
|
import config
|
||||||
|
import ui
|
||||||
# put anki home in c:\anki on win32 if not available
|
# put anki home in c:\anki on win32 if not available
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
path = os.path.expanduser("~")
|
path = os.path.expanduser("~")
|
||||||
|
|
Loading…
Reference in a new issue