mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
setup module paths before app init
This commit is contained in:
parent
9b178b94b9
commit
adbcf82501
1 changed files with 8 additions and 8 deletions
|
@ -100,14 +100,6 @@ def run():
|
|||
pass
|
||||
os.rename(oldConf, oldConf.replace("config.db",
|
||||
"config.db.old"))
|
||||
app = AnkiApp(sys.argv)
|
||||
QCoreApplication.setApplicationName("Anki")
|
||||
|
||||
import forms
|
||||
import ui
|
||||
|
||||
ui.splash = SplashScreen(5)
|
||||
|
||||
# setup paths for forms, icons
|
||||
sys.path.append(modDir)
|
||||
# jpeg module
|
||||
|
@ -118,6 +110,14 @@ def run():
|
|||
else:
|
||||
QCoreApplication.addLibraryPath(runningDir)
|
||||
|
||||
app = AnkiApp(sys.argv)
|
||||
QCoreApplication.setApplicationName("Anki")
|
||||
|
||||
import forms
|
||||
import ui
|
||||
|
||||
ui.splash = SplashScreen(5)
|
||||
|
||||
import anki
|
||||
if anki.version != appVersion:
|
||||
print "You have libanki %s, but this is ankiqt %s" % (
|
||||
|
|
Loading…
Reference in a new issue