33 if m != "__init__.py" and m.endswith(".py") |
33 if m != "__init__.py" and m.endswith(".py") |
34 ] |
34 ] |
35 |
35 |
36 for checkerModule in checkerModules: |
36 for checkerModule in checkerModules: |
37 try: |
37 try: |
38 mod = importlib.import_module("Security.Checks.{0}".format(checkerModule)) |
38 mod = importlib.import_module(".{0}".format(checkerModule), __package__) |
39 except ImportError: |
39 except ImportError: |
40 continue |
40 continue |
41 |
41 |
42 if not hasattr(mod, "getChecks"): |
42 if not hasattr(mod, "getChecks"): |
43 continue |
43 continue |