<s> """<STR_LIT>""" <EOL> import importlib <EOL> import pkgutil <EOL> def LoadModulesForPath ( path , package_prefix = None ) : <EOL> """<STR_LIT>""" <EOL> prefix = '<STR_LIT>' <EOL> if package_prefix : <EOL> prefix = package_prefix + '<STR_LIT:.>' <EOL> module_iter = pkgutil . iter_modules ( path , prefix = prefix ) <EOL> for _ , modname , ispkg in module_iter : <EOL> if not ispkg : <EOL> yield importlib . import_module ( modname ) </s>
