MCPcopy Create free account
hub / github.com/nodejs/node / FullPath

Method FullPath

tools/gyp/pylib/gyp/xcodeproj_file.py:1136–1154  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1134 return None
1135
1136 def FullPath(self):
1137 # Returns a full path to self relative to the project file, or relative
1138 # to some other source tree. Start with self, and walk up the chain of
1139 # parents prepending their paths, if any, until no more parents are
1140 # available (project-relative path) or until a path relative to some
1141 # source tree is found.
1142 xche = self
1143 path = None
1144 while isinstance(xche, XCHierarchicalElement) and (
1145 path is None or (not path.startswith("/") and not path.startswith("$"))
1146 ):
1147 this_path = xche.PathFromSourceTreeAndPath()
1148 if this_path is not None and path is not None:
1149 path = posixpath.join(this_path, path)
1150 elif this_path is not None:
1151 path = this_path
1152 xche = xche.parent
1153
1154 return path
1155
1156
1157class PBXGroup(XCHierarchicalElement):

Callers 1

_AddBuildFileToDictsMethod · 0.80

Calls 2

joinMethod · 0.45

Tested by

no test coverage detected