mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05: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
|
pass
|
||||||
os.rename(oldConf, oldConf.replace("config.db",
|
os.rename(oldConf, oldConf.replace("config.db",
|
||||||
"config.db.old"))
|
"config.db.old"))
|
||||||
app = AnkiApp(sys.argv)
|
|
||||||
QCoreApplication.setApplicationName("Anki")
|
|
||||||
|
|
||||||
import forms
|
|
||||||
import ui
|
|
||||||
|
|
||||||
ui.splash = SplashScreen(5)
|
|
||||||
|
|
||||||
# setup paths for forms, icons
|
# setup paths for forms, icons
|
||||||
sys.path.append(modDir)
|
sys.path.append(modDir)
|
||||||
# jpeg module
|
# jpeg module
|
||||||
|
|
@ -118,6 +110,14 @@ def run():
|
||||||
else:
|
else:
|
||||||
QCoreApplication.addLibraryPath(runningDir)
|
QCoreApplication.addLibraryPath(runningDir)
|
||||||
|
|
||||||
|
app = AnkiApp(sys.argv)
|
||||||
|
QCoreApplication.setApplicationName("Anki")
|
||||||
|
|
||||||
|
import forms
|
||||||
|
import ui
|
||||||
|
|
||||||
|
ui.splash = SplashScreen(5)
|
||||||
|
|
||||||
import anki
|
import anki
|
||||||
if anki.version != appVersion:
|
if anki.version != appVersion:
|
||||||
print "You have libanki %s, but this is ankiqt %s" % (
|
print "You have libanki %s, but this is ankiqt %s" % (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue