def create_output_modules(self):
py3_config = self.config["<STR_LIT>"]<EOL>i3modules = self.i3status_thread.i3modules<EOL>output_modules = self.output_modules<EOL>positions = {}<EOL>for index, name in enumerate(py3_config["<STR_LIT>"]):<EOL><INDENT>if name not in positions:<EOL><INDENT>positions[name] = []<EOL><DEDENT>positions[name].append(index)<EOL><DEDENT>for name in self.modules:<EOL><INDENT>if name not in output_modules:<EOL><INDENT>output_modules[name] = {}<EOL>output_modules[name]["<STR_LIT>"] = positions.get(name, [])<EOL>output_modules[name]["<STR_LIT>"] = self.modules[name]<EOL>output_modules[name]["<STR_LIT:type>"] = "<STR_LIT>"<EOL>output_modules[name]["<STR_LIT>"] = self.mappings_color.get(name)<EOL><DEDENT><DEDENT>for name in i3modules:<EOL><INDENT>if name not in output_modules:<EOL><INDENT>output_modules[name] = {}<EOL>output_modules[name]["<STR_LIT>"] = positions.get(name, [])<EOL>output_modules[name]["<STR_LIT>"] = i3modules[name]<EOL>output_modules[name]["<STR_LIT:type>"] = "<STR_LIT>"<EOL>output_modules[name]["<STR_LIT>"] = self.mappings_color.get(name)<EOL><DEDENT><DEDENT>self.output_modules = output_modules<EOL>
Setup our output modules to allow easy updating of py3modules and
i3status modules allows the same module to be used multiple times.