src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/__init__.py

branch
eric7
changeset 9497
8beca4047c53
parent 9485
0f3620304d7a
child 9653
e67609152c5e
equal deleted inserted replaced
9496:05017f795c24 9497:8beca4047c53
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

eric ide

mercurial