diff --git a/mamba/templates/plugin.tpl b/mamba/templates/plugin.tpl index 89884bd..9aca804 100644 --- a/mamba/templates/plugin.tpl +++ b/mamba/templates/plugin.tpl @@ -1,3 +1,5 @@ +from os.path import abspath, dirname, join + from zope.interface import implements from twisted.python import usage @@ -13,8 +15,9 @@ from mamba.core.services.herokuservice import HerokuService from mamba.core.services.threadpool import ThreadPoolService from ${application} import MambaApplicationFactory - -settings = config.Application('config/${file}') +# the config path is relative to ${app}/twisted/plugins +cfg = abspath(join(dirname(__file__), '..', '..', 'config/${file}')) +settings = config.Application(cfg) class Options(usage.Options):