Move Plugin Manager to core/lib

This commit is contained in:
Tim Bentley 2009-04-20 19:22:42 +01:00
parent 13a2339841
commit 0f80ab4266
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
from PyQt4 import QtCore, QtGui from PyQt4 import QtCore, QtGui
from settingsmanager import SettingsManager from settingsmanager import SettingsManager
from pluginmanager import PluginManager from openlp.core.lib.pluginmanager import PluginManager
__all__ = ['SettingsManager', 'PluginManager', 'translate', __all__ = ['SettingsManager', 'PluginManager', 'translate',
'fileToXML' ] 'fileToXML' ]

View File

@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA Place, Suite 330, Boston, MA 02111-1307 USA
""" """
import os import os
import sys import sys
import logging import logging

View File

@ -1,4 +1,7 @@
import logging import logging
import os, sys
from openlp.core.lib.pluginmanager import PluginManager
logging.basicConfig(level=logging.DEBUG, logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%m-%d %H:%M', datefmt='%m-%d %H:%M',
@ -14,11 +17,9 @@ logging.getLogger('').addHandler(console)
log=logging.getLogger('') log=logging.getLogger('')
logging.info("Logging started") logging.info("Logging started")
import os, sys
mypath=os.path.split(os.path.abspath(__file__))[0] mypath=os.path.split(os.path.abspath(__file__))[0]
sys.path.insert(0,(os.path.join(mypath, '..' ,'..', '..'))) sys.path.insert(0,(os.path.join(mypath, '..' ,'..', '..')))
from openlp.core.pluginmanager import PluginManager
# test the plugin manager with some plugins in the test_plugins directory # test the plugin manager with some plugins in the test_plugins directory
class TestPluginManager: class TestPluginManager: