Skip to content

Commit

Permalink
adapted config.py to new contrib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed Jan 5, 2016
1 parent 09be3b1 commit 48fd19c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mailpile/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ def DEFAULT_SHARED_DATADIR(self):

def __init__(self, workdir=None, shareddatadir=None, rules={}):
ConfigDict.__init__(self, _rules=rules, _magic=False)

self.workdir = os.path.abspath(workdir or self.DEFAULT_WORKDIR())
mailpile.vfs.register_alias('/Mailpile', self.workdir)

Expand Down Expand Up @@ -1453,8 +1453,7 @@ def _unlocked_load(self, session, filename=None, public=False):
# Discover plugins and update the config rule to match
from mailpile.plugins import PluginManager
self.plugins = PluginManager(config=self, builtin=True).discover([
os.path.join(os.path.dirname(os.path.realpath(__file__)),
'contrib'),
os.path.join(self.shareddatadir, 'contrib'),
os.path.join(self.workdir, 'plugins')
])
self.sys.plugins.rules['_any'][self.RULE_CHECKER
Expand Down

0 comments on commit 48fd19c

Please sign in to comment.