MCPcopy Create free account
hub / github.com/bazelbuild/bazel / to_absolute_path

Function to_absolute_path

tools/aquery_differ/aquery_differ.py:247–255  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

245
246
247def to_absolute_path(path):
248 path = os.path.expanduser(path)
249 if os.path.isabs(path):
250 return path
251 else:
252 if "BUILD_WORKING_DIRECTORY" in os.environ:
253 return os.path.join(os.environ["BUILD_WORKING_DIRECTORY"], path)
254 else:
255 return path
256
257
258def main(unused_argv):

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…