mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
import forms
|
||||
import config
|
||||
import ui
|
||||
|
||||
# App initialisation
|
||||
##########################################################################
|
||||
|
||||
def run():
|
||||
import forms
|
||||
import config
|
||||
import ui
|
||||
# put anki home in c:\anki on win32 if not available
|
||||
if sys.platform == "win32":
|
||||
path = os.path.expanduser("~")
|
||||
|
|
Loading…
Reference in a new issue