Permalink
Browse files

Add crude warning when iter_entry_points detects no handlers or readers.

  • Loading branch information...
Ken
Ken committed Dec 11, 2009
1 parent bc732ee commit e59478de4d6aa3c6b4f259b9bd526d7bf7bad234
Showing with 4 additions and 0 deletions.
  1. +4 −0 singleshot/handlers/__init__.py
@@ -8,12 +8,16 @@ def load_handlers():
actions = {}
for act in iter_entry_points("singleshot.handlers"):
actions[act.name] = act.load()
if not actions:
print '** WARNING: No handlers found, is singleshot installed?'
return actions
def load_readers():
actions = {}
for act in iter_entry_points("singleshot.readers"):
actions[act.name] = act.load()
if not actions:
print '** WARNING: No readers found, is singleshot installed?'
return actions
class Handler(object):

0 comments on commit e59478d

Please sign in to comment.