Philipp Hörist pushed to branch master at gajim / gajim

Commits:
78d16c44 by Philipp Hörist at 2018-07-08T17:06:12+02:00
Register PEP module first

Other modules depend on it

- - - - -


1 changed file:

- gajim/common/modules/__init__.py


Changes:

=====================================
gajim/common/modules/__init__.py
=====================================
--- a/gajim/common/modules/__init__.py
+++ b/gajim/common/modules/__init__.py
@@ -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:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/78d16c44f3f9171a31add9e80e3f2658c02930fa

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/78d16c44f3f9171a31add9e80e3f2658c02930fa
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to