def _getModules(self):
modules = {}<EOL>modulesPath = os.path.join("<STR_LIT>", "<STR_LIT>")<EOL>moduleList = os.listdir(modulesPath)<EOL>for moduleName in moduleList:<EOL><INDENT>modulePath = os.path.join(modulesPath, moduleName, "<STR_LIT>")<EOL>if not os.path.isfile(modulePath):<EOL><INDENT>continue<EOL><DEDENT>moduleSpec = importlib.util.spec_from_file_location(<EOL>moduleName,<EOL>modulePath<EOL>)<EOL>module = importlib.util.module_from_spec(moduleSpec)<EOL>moduleSpec.loader.exec_module(module)<EOL>moduleInstance = module.Module(self)<EOL>modules[moduleName] = moduleInstance<EOL><DEDENT>return modules<EOL>
Import and load application modules.

:return: <dict>