fix indentation
This commit is contained in:
parent
00110189c9
commit
dffda6f673
1 changed files with 7 additions and 7 deletions
|
|
@ -153,13 +153,13 @@ class ModulesLoader(object):
|
||||||
return self.modules[name]
|
return self.modules[name]
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
import weboob.backends
|
import weboob.backends
|
||||||
for path in weboob.backends.__path__:
|
for path in weboob.backends.__path__:
|
||||||
regexp = re.compile('^%s/([\w\d_]+)$' % path)
|
regexp = re.compile('^%s/([\w\d_]+)$' % path)
|
||||||
for root, dirs, files in os.walk(path):
|
for root, dirs, files in os.walk(path):
|
||||||
m = regexp.match(root)
|
m = regexp.match(root)
|
||||||
if m and '__init__.py' in files:
|
if m and '__init__.py' in files:
|
||||||
self.load_module('weboob.backends.%s' % m.group(1))
|
self.load_module('weboob.backends.%s' % m.group(1))
|
||||||
|
|
||||||
def load_module(self, name):
|
def load_module(self, name):
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue