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

Commit 8a664094 authored by Atneya Nair's avatar Atneya Nair Committed by Gerrit Code Review
Browse files

Merge "dirmods: Update to take absolute paths" into main

parents bd3fd1da 30f36626
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -35,6 +35,14 @@ def main():
    args = parser.parse_args()

    d = os.path.normpath(args.path)
    # Fix absolute path to be relative to build top
    if os.path.isabs(d):
        base = os.environ.get('ANDROID_BUILD_TOP')
        if base:
            base = os.path.normpath(base) + os.path.sep
            if d.startswith(base):
                d = d[len(base):]

    prefix = d + '/'

    module_info = modinfo.ReadModuleInfo()