def resolve_loader(self, meta: ProgramDescription):
if not meta.loader:<EOL><INDENT>meta.loader = '<STR_LIT>' if meta.path else '<STR_LIT>'<EOL><DEDENT>for loader_cls in self._loaders:<EOL><INDENT>if loader_cls.name == meta.loader:<EOL><INDENT>meta.loader_cls = loader_cls<EOL>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ImproperlyConfigured(<EOL>(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>).format(meta.path)<EOL>)<EOL><DEDENT>
Resolve program loader