Register PEP module first
Other modules depend on it
This commit is contained in:
parent
bd79fe629f
commit
78d16c44f3
1 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue