|
a/Allura/allura/command/base.py |
|
b/Allura/allura/command/base.py |
|
... |
|
... |
47 |
from allura.lib.app_globals import Globals
|
47 |
from allura.lib.app_globals import Globals
|
48 |
pylons.g._push_object(Globals())
|
48 |
pylons.g._push_object(Globals())
|
49 |
ming.configure(**conf)
|
49 |
ming.configure(**conf)
|
50 |
else:
|
50 |
else:
|
51 |
log = logging.getLogger('allura.command')
|
51 |
log = logging.getLogger('allura.command')
|
52 |
self.tools = [
|
52 |
self.tools = []
|
53 |
(ep.name, ep.load()) for ep in iter_entry_points('allura') ]
|
53 |
for ep in iter_entry_points('allura'):
|
|
|
54 |
try:
|
|
|
55 |
self.tools.append((ep.name, ep.load()))
|
|
|
56 |
except ImportError:
|
|
|
57 |
log.warning('Canot load entry point %s', ep)
|
54 |
log.info('Loaded tools')
|
58 |
log.info('Loaded tools')
|
55 |
|
59 |
|