forked from openlp/openlp
Fix imports so test code works.
bzr-revno: 81
This commit is contained in:
parent
da4060711a
commit
5b4210c137
@ -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")
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user