MCPcopy Index your code
hub / github.com/nodejs/node / AbsoluteNode

Function AbsoluteNode

tools/gyp/tools/pretty_vcproj.py:129–146  ·  view source on GitHub ↗

Makes all the properties we know about in this node absolute.

(node)

Source from the content-addressed store, hash-verified

127
128
129def 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
149def CleanupVcproj(node):

Callers 1

CleanupVcprojFunction · 0.85

Calls 4

FixFilenamesFunction · 0.85
itemsMethod · 0.45
splitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected