Commit 78d16c44 authored by Philipp Hörist's avatar Philipp Hörist

Register PEP module first

Other modules depend on it
parent bd79fe62
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment