Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 882515 | Differences between
and this patch

Collapse All | Expand All

(-)a/buildscripts/moduleconfig.py (-3 lines)
Lines 27-33 MongoDB SConscript files do. Link Here
27
__all__ = ('discover_modules', 'discover_module_directories', 'configure_modules',
27
__all__ = ('discover_modules', 'discover_module_directories', 'configure_modules',
28
           'register_module_test')  # pylint: disable=undefined-all-variable
28
           'register_module_test')  # pylint: disable=undefined-all-variable
29
29
30
import imp
31
import inspect
30
import inspect
32
import os
31
import os
33
32
Lines 71-78 def discover_modules(module_root, allowed_modules): Link Here
71
            print("adding module: %s" % (name))
70
            print("adding module: %s" % (name))
72
            fp = open(build_py, "r")
71
            fp = open(build_py, "r")
73
            try:
72
            try:
74
                module = imp.load_module("module_" + name, fp, build_py,
75
                                         (".py", "r", imp.PY_SOURCE))
76
                if getattr(module, "name", None) is None:
73
                if getattr(module, "name", None) is None:
77
                    module.name = name
74
                    module.name = name
78
                found_modules.append(module)
75
                found_modules.append(module)

Return to bug 882515