Make pathmod give absolute paths am: 5f2be11396

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3114319

Change-Id: Ic2058bedb8357311a30c483a7d4d6d338a32ae87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Cole Faust 2024-06-04 20:36:32 +00:00 committed by Automerger Merge Worker
commit 32e6102832

View file

@ -31,7 +31,8 @@ def main(argv):
sys.stderr.write("usage: pathmod <module>\n")
sys.exit(1)
print(modinfo.GetModule(modinfo.ReadModuleInfo(), argv[1])['path'][0])
path = modinfo.GetModule(modinfo.ReadModuleInfo(), argv[1])['path'][0]
print(os.path.join(os.getenv("ANDROID_BUILD_TOP", ""), path))
if __name__ == "__main__":
main(sys.argv)