Skip to content

Commit

Permalink
Merge pull request #343 from Flexget/apscheduler
Browse files Browse the repository at this point in the history
replacing our scheduler with apscheduler
  • Loading branch information
gazpachoking committed Oct 14, 2014
2 parents fc8a92d + 6e91391 commit 35f7563
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 269 deletions.
7 changes: 3 additions & 4 deletions flexget/plugin.py
Expand Up @@ -385,12 +385,11 @@ def _load_plugins_from_dirs(dirs):
# This can happen if one plugin imports from another plugin
if name in sys.modules:
continue
loader = importer.find_module(name)
# Don't load from pyc files
if not loader.filename.endswith('.py'):
if not importer.find_module(name).filename.endswith('.py'):
continue
try:
loaded_module = loader.load_module(name)
__import__(name)
except DependencyError as e:
if e.has_message():
msg = e.message
Expand All @@ -408,7 +407,7 @@ def _load_plugins_from_dirs(dirs):
log.exception(e)
raise
else:
log.trace('Loaded module %s from %s' % (name, loaded_module.__file__))
log.trace('Loaded module %s from %s' % (name, sys.modules[name].__file__))

if _new_phase_queue:
for phase, args in _new_phase_queue.iteritems():
Expand Down

0 comments on commit 35f7563

Please sign in to comment.