Makes all the properties we know about in this node absolute.
(node)
| 127 | |
| 128 | |
| 129 | def AbsoluteNode(node): |
| 130 | """Makes all the properties we know about in this node absolute.""" |
| 131 | if node.attributes: |
| 132 | for name, value in node.attributes.items(): |
| 133 | if name in [ |
| 134 | "InheritedPropertySheets", |
| 135 | "RelativePath", |
| 136 | "AdditionalIncludeDirectories", |
| 137 | "IntermediateDirectory", |
| 138 | "OutputDirectory", |
| 139 | "AdditionalLibraryDirectories", |
| 140 | ]: |
| 141 | # We want to fix up these paths |
| 142 | path_list = value.split(";") |
| 143 | new_list = FixFilenames(path_list, os.path.dirname(ARGUMENTS[1])) |
| 144 | node.setAttribute(name, ";".join(new_list)) |
| 145 | if not value: |
| 146 | node.removeAttribute(name) |
| 147 | |
| 148 | |
| 149 | def CleanupVcproj(node): |
no test coverage detected