OLD | NEW |
1 #!/usr/bin/python2.4 | 1 #!/usr/bin/python2.4 |
2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
3 """Visual Studio project reader/writer.""" | 7 """Visual Studio project reader/writer.""" |
4 | 8 |
5 import common | 9 import common |
6 import xml.dom | 10 import xml.dom |
7 import xml.dom.minidom | 11 import xml.dom.minidom |
8 import MSVSNew | 12 import MSVSNew |
9 | 13 |
10 #------------------------------------------------------------------------------ | 14 #------------------------------------------------------------------------------ |
11 | 15 |
12 | 16 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 # Add the config to the file node | 230 # Add the config to the file node |
227 self._AddConfigToNode(parent, 'FileConfiguration', config, attrs, tools) | 231 self._AddConfigToNode(parent, 'FileConfiguration', config, attrs, tools) |
228 | 232 |
229 def Write(self, writer=common.WriteOnDiff): | 233 def Write(self, writer=common.WriteOnDiff): |
230 """Writes the project file.""" | 234 """Writes the project file.""" |
231 f = writer(self.project_path) | 235 f = writer(self.project_path) |
232 self.doc.writexml(f, encoding='Windows-1252', addindent=' ', newl='\r\n') | 236 self.doc.writexml(f, encoding='Windows-1252', addindent=' ', newl='\r\n') |
233 f.close() | 237 f.close() |
234 | 238 |
235 #------------------------------------------------------------------------------ | 239 #------------------------------------------------------------------------------ |
OLD | NEW |