Make pathmod give absolute paths

This was broken when pathmod was turned into a standalone script.

Bug: 340648588
Test: gomod frameworks-minus-apex from build/soong
Change-Id: Ibd5eaf2c29d232c1a7da432723f7c6b6fa8bce83
This commit is contained in:
Cole Faust 2024-06-04 12:14:35 -07:00
parent fba4e70227
commit 5f2be11396

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)