Register PEP module first

Other modules depend on it
This commit is contained in:
Philipp Hörist 2018-07-08 17:06:12 +02:00
parent bd79fe629f
commit 78d16c44f3
1 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,12 @@ for file in Path(__file__).parent.iterdir():
module = import_module('.%s' % file.stem, package='gajim.common.modules')
if hasattr(module, 'get_instance'):
log.info('Load module: %s', file.stem)
imported_modules.append(module)
if file.stem == 'pep':
# Register the PEP module first, because other modules
# depend on it
imported_modules.insert(0, module)
else:
imported_modules.append(module)
class ModuleMock: