Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f2be113 authored by Cole Faust's avatar Cole Faust
Browse files

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
parent fba4e702
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)