def check_child_friendly(self, name):
name = name.split()[<NUM_LIT:0>]<EOL>if name in self.container_modules:<EOL><INDENT>return<EOL><DEDENT>root = os.path.dirname(os.path.realpath(__file__))<EOL>module_path = os.path.join(root, "<STR_LIT>")<EOL>try:<EOL><INDENT>info = imp.find_module(name, [module_path])<EOL><DEDENT>except ImportError:<EOL><INDENT>return<EOL><DEDENT>if not info:<EOL><INDENT>return<EOL><DEDENT>(file, pathname, description) = info<EOL>try:<EOL><INDENT>py_mod = imp.load_module(name, file, pathname, description)<EOL><DEDENT>except Exception:<EOL><INDENT>return<EOL><DEDENT>try:<EOL><INDENT>container = py_mod.Py3status.Meta.container<EOL><DEDENT>except AttributeError:<EOL><INDENT>container = False<EOL><DEDENT>del py_mod<EOL>if container:<EOL><INDENT>self.container_modules.append(name)<EOL><DEDENT>else:<EOL><INDENT>self.error("<STR_LIT>".format(name))<EOL><DEDENT>
Check if a module is a container and so can have children