forked from openlp/openlp
Changed the "from openlp.core.resources import *" to a specific import, as per Michael Gorven's request.
This commit is contained in:
parent
de9e843c04
commit
61eee2fe3c
@ -30,7 +30,7 @@ from optparse import OptionParser
|
|||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import Receiver, str_to_bool
|
from openlp.core.lib import Receiver, str_to_bool
|
||||||
from openlp.core.resources import *
|
from openlp.core.resources import qInitResources
|
||||||
from openlp.core.ui import MainWindow, SplashScreen
|
from openlp.core.ui import MainWindow, SplashScreen
|
||||||
from openlp.core.utils import ConfigHelper
|
from openlp.core.utils import ConfigHelper
|
||||||
|
|
||||||
@ -105,6 +105,8 @@ def main():
|
|||||||
log.setLevel(logging.DEBUG)
|
log.setLevel(logging.DEBUG)
|
||||||
else:
|
else:
|
||||||
log.setLevel(logging.INFO)
|
log.setLevel(logging.INFO)
|
||||||
|
# Initialise the resources
|
||||||
|
qInitResources()
|
||||||
# Now create and actually run the application.
|
# Now create and actually run the application.
|
||||||
app = OpenLP(sys.argv)
|
app = OpenLP(sys.argv)
|
||||||
sys.exit(app.run())
|
sys.exit(app.run())
|
||||||
@ -113,6 +115,4 @@ if __name__ == u'__main__':
|
|||||||
"""
|
"""
|
||||||
Instantiate and run the application.
|
Instantiate and run the application.
|
||||||
"""
|
"""
|
||||||
#import cProfile
|
|
||||||
#cProfile.run("main()", "profile.out")
|
|
||||||
main()
|
main()
|
||||||
|
@ -27,7 +27,6 @@ import logging
|
|||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
from openlp.core.lib import SettingsTab
|
from openlp.core.lib import SettingsTab
|
||||||
from openlp.core.resources import *
|
|
||||||
from openlp.core.ui import GeneralTab, ThemesTab, AlertsTab
|
from openlp.core.ui import GeneralTab, ThemesTab, AlertsTab
|
||||||
from settingsdialog import Ui_SettingsDialog
|
from settingsdialog import Ui_SettingsDialog
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user