Fix imports so test code works.

bzr-revno: 81
This commit is contained in:
Tim Bentley 2008-11-05 21:46:39 +00:00
parent da4060711a
commit 5b4210c137
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
# import openlp.plugins # import openlp.plugins
from openlp.plugins import Plugin
import os, sys import os, sys
import logging import logging
mypath=os.path.split(os.path.abspath(__file__))[0]
sys.path.insert(0,(os.path.join(mypath, '..' ,'..')))
from openlp.plugins.plugin import Plugin
class PluginManager: class PluginManager:
global log global log
log=logging.getLogger("PluginMgr") log=logging.getLogger("PluginMgr")

View File

@ -18,7 +18,7 @@ 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.plugins import PluginManager from openlp.plugins.plugin_manager import PluginManager
class TestPluginManager: class TestPluginManager:
def test_init(self): def test_init(self):