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

Function FixIfRelativePath

tools/gyp/pylib/gyp/common.py:191–195  ·  view source on GitHub ↗
(path, relative_to)

Source from the content-addressed store, hash-verified

189
190
191def FixIfRelativePath(path, relative_to):
192 # Like RelativePath but returns |path| unchanged if it is absolute.
193 if os.path.isabs(path):
194 return path
195 return RelativePath(path, relative_to)
196
197
198def UnrelativePath(path, relative_to):

Callers

nothing calls this directly

Calls 1

RelativePathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…