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

Function FixFilenames

tools/gyp/tools/pretty_vcproj.py:114–126  ·  view source on GitHub ↗
(filenames, current_directory)

Source from the content-addressed store, hash-verified

112
113
114def FixFilenames(filenames, current_directory):
115 new_list = []
116 for filename in filenames:
117 if filename:
118 for key, value in REPLACEMENTS.items():
119 filename = filename.replace(key, value)
120 os.chdir(current_directory)
121 filename = filename.strip("\"' ")
122 if filename.startswith("$"):
123 new_list.append(filename)
124 else:
125 new_list.append(os.path.abspath(filename))
126 return new_list
127
128
129def AbsoluteNode(node):

Callers 3

AbsoluteNodeFunction · 0.85
GetChildrenVspropsFunction · 0.85
mainFunction · 0.85

Calls 3

chdirMethod · 0.80
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…