forked from openlp/openlp
Merge from head.
This commit is contained in:
commit
3243b12a0c
@ -23,7 +23,6 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ import logging
|
|||||||
from PyQt4 import QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.ui import GeneralTab, ThemesTab
|
from openlp.core.ui import GeneralTab, ThemesTab
|
||||||
from openlp.core.lib import Receiver
|
|
||||||
from settingsdialog import Ui_SettingsDialog
|
from settingsdialog import Ui_SettingsDialog
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
@ -45,7 +44,7 @@ class SettingsForm(QtGui.QDialog, Ui_SettingsDialog):
|
|||||||
self.ThemesTab = ThemesTab(mainWindow)
|
self.ThemesTab = ThemesTab(mainWindow)
|
||||||
self.addTab(u'Themes', self.ThemesTab)
|
self.addTab(u'Themes', self.ThemesTab)
|
||||||
|
|
||||||
def addTab(self, name, tab):
|
def addTab(self, name, tab):
|
||||||
log.info(u'Adding %s tab' % tab.tabTitle)
|
log.info(u'Adding %s tab' % tab.tabTitle)
|
||||||
self.SettingsTabWidget.addTab(tab, tab.tabTitleVisible)
|
self.SettingsTabWidget.addTab(tab, tab.tabTitleVisible)
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
import openlp
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
@ -43,7 +44,7 @@ class AppLocation(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_directory(dir_type):
|
def get_directory(dir_type):
|
||||||
if dir_type == AppLocation.AppDir:
|
if dir_type == AppLocation.AppDir:
|
||||||
return os.path.abspath(os.path.split(sys.argv[0])[0])
|
return os.path.abspath(os.path.split(sys.argv[0])[0])
|
||||||
elif dir_type == AppLocation.ConfigDir:
|
elif dir_type == AppLocation.ConfigDir:
|
||||||
if sys.platform == u'win32':
|
if sys.platform == u'win32':
|
||||||
path = os.path.join(os.getenv(u'APPDATA'), u'openlp')
|
path = os.path.join(os.getenv(u'APPDATA'), u'openlp')
|
||||||
@ -71,11 +72,19 @@ class AppLocation(object):
|
|||||||
path = os.path.join(os.getenv(u'HOME'), u'.openlp', u'data')
|
path = os.path.join(os.getenv(u'HOME'), u'.openlp', u'data')
|
||||||
return path
|
return path
|
||||||
elif dir_type == AppLocation.PluginsDir:
|
elif dir_type == AppLocation.PluginsDir:
|
||||||
|
plugin_path = None
|
||||||
app_path = os.path.abspath(os.path.split(sys.argv[0])[0])
|
app_path = os.path.abspath(os.path.split(sys.argv[0])[0])
|
||||||
if hasattr(sys, u'frozen') and sys.frozen == 1:
|
if sys.platform == u'win32':
|
||||||
return os.path.join(app_path, u'plugins')
|
if hasattr(sys, u'frozen') and sys.frozen == 1:
|
||||||
|
plugin_path = os.path.join(app_path, u'plugins')
|
||||||
|
else:
|
||||||
|
plugin_path = os.path.join(app_path, u'openlp', u'plugins')
|
||||||
|
elif sys.platform == u'darwin':
|
||||||
|
plugin_path = os.path.join(app_path, u'plugins')
|
||||||
else:
|
else:
|
||||||
return os.path.join(app_path, u'openlp', u'plugins')
|
plugin_path = os.path.join(
|
||||||
|
os.path.split(openlp.__file__)[0], u'plugins')
|
||||||
|
return plugin_path
|
||||||
|
|
||||||
|
|
||||||
def check_latest_version(config, current_version):
|
def check_latest_version(config, current_version):
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
|
|
||||||
from common import parse_reference
|
from common import parse_reference
|
||||||
from opensong import OpenSongBible
|
from opensong import OpenSongBible
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
hiddenimports = ['openlp.plugins.presentations.lib.impresscontroller',
|
hiddenimports = ['openlp.plugins.presentations.lib.impresscontroller',
|
||||||
'openlp.plugins.presentations.lib.powerpointcontroller',
|
'openlp.plugins.presentations.lib.powerpointcontroller',
|
||||||
'openlp.plugins.presentations.lib.pptviewcontroller']
|
'openlp.plugins.presentations.lib.pptviewcontroller']
|
@ -1,4 +1,4 @@
|
|||||||
hiddenimports = ['plugins.songs.songsplugin',
|
hiddenimports = ['plugins.songs.songsplugin',
|
||||||
'plugins.bibles.bibleplugin',
|
'plugins.bibles.bibleplugin',
|
||||||
'plugins.presentations.presentationplugin',
|
'plugins.presentations.presentationplugin',
|
||||||
'plugins.media.mediaplugin',
|
'plugins.media.mediaplugin',
|
||||||
|
Loading…
Reference in New Issue
Block a user