Writes the user file.
(self)
| 137 | self.configurations[config_name].append(n_cmd) |
| 138 | |
| 139 | def WriteIfChanged(self): |
| 140 | """Writes the user file.""" |
| 141 | configs = ["Configurations"] |
| 142 | for config, spec in sorted(self.configurations.items()): |
| 143 | configs.append(spec) |
| 144 | |
| 145 | content = [ |
| 146 | "VisualStudioUserFile", |
| 147 | {"Version": self.version.ProjectVersion(), "Name": self.name}, |
| 148 | configs, |
| 149 | ] |
| 150 | easy_xml.WriteXmlIfChanged( |
| 151 | content, self.user_file_path, encoding="Windows-1252" |
| 152 | ) |
nothing calls this directly
no test coverage detected