Optimize imports

This commit is contained in:
Ruud
2014-03-12 21:41:29 +01:00
parent 79d6a6f85f
commit 12c08154c5
117 changed files with 507 additions and 279 deletions
+6 -4
View File
@@ -1,11 +1,13 @@
from couchpotato.core.event import fireEvent
from couchpotato.core.logger import CPLog
from importhelper import import_module
import os
import sys
import traceback
from couchpotato.core.event import fireEvent
from couchpotato.core.logger import CPLog
from importhelper import import_module
import six
log = CPLog(__name__)
@@ -124,7 +126,7 @@ class Loader(object):
def loadPlugins(self, module, name):
if not hasattr(module, 'autoload'):
log.debug('Skip startup for plugin %s as it has no start section' % module.__file__)
#log.debug('Skip startup for plugin %s as it has no start section' % module.__file__)
return False
try:
# Load single file plugin